DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 12, 2018, 09:37:51 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Another stuipd question (towns)  (Read 2825 times)
0 Members and 1 Guest are viewing this topic.
Kermit
Guest
« on: September 01, 2004, 01:30:54 PM »

I'm trying to figure out how I can get a list of installed cities.  Any ideas?
Logged
aes
Guest
« Reply #1 on: September 01, 2004, 01:54:22 PM »

Hi Kermit,

That's actually not a stupid question.  It took me a while to figure that one and even then I had to ask Kendaer for a bit of help.

You can use:

Code:
 $vloc = array();
  $vname = getsetting("villagename", LOCATION_FIELDS);
  $vloc[$vname] = "village";
  $vloc = modulehook("validlocation", $vloc);
  foreach($vloc as $loc=>$val) {
   
  output("%s",$loc);
 
  }

Check out my World Map module on lines 542 - 559 for an example.  Wink

Regards,
aes
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
35 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search