DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • March 21, 2019, 03:35:18 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: How to make a race live in the capital  (Read 2926 times)
0 Members and 1 Guest are viewing this topic.
« on: November 03, 2005, 08:21:24 AM »

Yes, I know, it shouldn't be done, but I would love to make the capital the home city of some races. Modifying cities.php to allow the necessary shops, training etc is easy, but how can the capital be defined as home city in a race file?
Once again I'm too dense to find an answer myself.  Tongue
Global Moderator
Mod God
Offline Offline

Posts: 4647

Be aware of the squirrel!

View Profile WWW
« Reply #1 on: November 03, 2005, 08:57:06 AM »

Somewhere in the dohook-setrace-part do:
set_module_pref("homecity",getsetting("villagename", LOCATION_FIELDS),"cities");

and in the "village" hook you just have to block/unblock the necessary navs... Wink

Running for more than three years now:
« Reply #2 on: November 03, 2005, 09:30:40 AM »

Of course it was as easy as expected. Must be the dreaded newbie-blindness, hopefully it gets away soon.

You're an angel! Thanks a ton!  Kiss
Pages: [1]   Go Up
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
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search