1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How can I use the Dynamic City Names in another mod?

Discussion in 'Civ4 - Rhye's and Fall of Civilization' started by nvalzxi87, Jul 2, 2013.

  1. nvalzxi87

    nvalzxi87 Chieftain

    Joined:
    Sep 29, 2010
    Messages:
    19
  2. Leoreth

    Leoreth Fluffy Boy Moderator

    Joined:
    Aug 23, 2009
    Messages:
    31,595
    Gender:
    Male
    Location:
    Dark World
    What you need are the event triggers that do the stuff defined in the CNM in the first place. I think the safest way to add that without messing everything up is to copy the CvEventManager.py file from your BtS folder into your mod, then import your CNM module there and call its onCityAcquired() and onCityBuilt() methods in the equivalent methods of the event manager. Look into CvRFCEventHandler.py to see how RFC does it.
     
  3. DrZomboss

    DrZomboss Brrrainz Gourmet

    Joined:
    Mar 21, 2012
    Messages:
    369
    Location:
    Tervuren, Belgium
    Could you explain? It hardly makes sense for a python noob... Perhaps even indicate the place you're talking about?
     

Share This Page