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

Modding Tribal Villages?

Discussion in 'Civ4 - Creation & Customization' started by Verkinix, Apr 9, 2009.

  1. Verkinix

    Verkinix Chieftain

    Joined:
    Oct 30, 2005
    Messages:
    32
    There doesnt seem to be any reference toward modding tribal villages or huts as I like to call them. Is there a way to modify their "drop rates" or how often they occur? I cant seem to find anything in the xml files so perhaps I am simply missing something.

    Any help would be appreciated.

    Thanks
     
  2. BobTheTerrible

    BobTheTerrible Just Another Bob

    Joined:
    Jan 5, 2003
    Messages:
    927
    Location:
    Middle of Nowhere
    In Civ4HandicapInfos.xml, there's a reference to the tribal villiages towards the end of each difficulty entry. How many entries a particular event has determines how likely it is to happen. Here's the entry for Settler difficulty level:

    Code:
    			<Goodies>
    				<GoodyType>GOODY_HIGH_GOLD</GoodyType>
    				<GoodyType>GOODY_HIGH_GOLD</GoodyType>
    				<GoodyType>GOODY_HIGH_GOLD</GoodyType>
    				<GoodyType>GOODY_HIGH_GOLD</GoodyType>
    				<GoodyType>GOODY_LOW_GOLD</GoodyType>
    				<GoodyType>GOODY_LOW_GOLD</GoodyType>
    				<GoodyType>GOODY_MAP</GoodyType>
    				<GoodyType>GOODY_SETTLER</GoodyType>
    				<GoodyType>GOODY_SETTLER</GoodyType>
    				<GoodyType>GOODY_WARRIOR</GoodyType>
    				<GoodyType>GOODY_WARRIOR</GoodyType>
    				<GoodyType>GOODY_SCOUT</GoodyType>
    				<GoodyType>GOODY_WORKER</GoodyType>
    				<GoodyType>GOODY_WORKER</GoodyType>
    				<GoodyType>GOODY_EXPERIENCE</GoodyType>
    				<GoodyType>GOODY_HEALING</GoodyType>
    				<GoodyType>GOODY_TECH</GoodyType>
    				<GoodyType>GOODY_TECH</GoodyType>
    				<GoodyType>GOODY_TECH</GoodyType>
    				<GoodyType>GOODY_TECH</GoodyType>
    			</Goodies>
    
    Here, it looks like the probability of getting a Settler from a goody hut is 2/20. If you wanted to remove the possibility of getting Settlers, just delete the entries for Settlers, but keep in mind it would throw off all the other probabilities somewhat (for example, getting a worker would then be 2/18 rather than 2/20).

    I'm not 100% sure that's how it works, but I'm pretty sure that's it. (Also, be sure to change the probs for each difficulty you want to change).
     
  3. Willem

    Willem Deity

    Joined:
    Feb 12, 2002
    Messages:
    7,313
    Location:
    Canada
    I guess you didn't see this line then:

    <iTilesPerGoody>40</iTilesPerGoody>

    It's in the CIV4ImprovementInfos.xml file.
     
  4. Verkinix

    Verkinix Chieftain

    Joined:
    Oct 30, 2005
    Messages:
    32
    You guys rock, Thanks a ton!
     

Share This Page