DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • January 23, 2019, 08:06:28 PM
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 2877 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
Welcome to DragonPrime - The LoGD Resource Community!

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