Expanding the Aggressive trait?

SlipperyJim

Prince
Joined
Jan 10, 2006
Messages
332
Location
Northern Virginia, USA
Maybe I'm too much of a warmonger, but the Aggressive trait seems limited to me. Why do only your Melee and Gunpowder units get the free promotion? It's not as if Combat I is some totally unbalancing bonus, after all. Furthermore, it seems lacking in realism. The feared Mongol Keshiks get absolutely no bonus from their Khan's Aggressive trait? :rolleyes:

So, mod it, right? Except I tried that, and it didn't work. Now I'm asking for help. As far as I can tell, the traits are defined in the Civ4TraitInfos.xml file. Within the definition of the Agressive trait, I found this block:
Code:
            <FreePromotions>
                <FreePromotion>
                    <PromotionType>PROMOTION_COMBAT1</PromotionType>
                    <bFreePromotion>1</bFreePromotion>
                </FreePromotion>
            </FreePromotions>
That defines my free promotion as Combat I. Okay, so far, so good. After that section, there's another block:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
That block specifies which types of units get the free Combat I promotion. Here's what I wanted to change, so I added a few other unit types (such as mounted) to the list. Here's what I got:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                 <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
I saved the changed file into my CustomAssets folder (in the xml\civilizations path), cleared my cache, and started a new game as Kublai Khan. Imagine my shock when my new Keshiks didn't get the free promotion.

What did I do wrong? Did I forget something? Do I need to use Python, too? Any assistance would be greatly appreciated.
 
Weasel Op said:
Wrong forum, this is for tutorials. Questions go in the main C&C forum.

Whoops, sorry about that. I saw other questions here, so I thought this was the place for questions. :blush:

I reposted my question here:
http://forums.civfanatics.com/showthread.php?t=153397

If someone wants to delete this thread, that would be fine with me.
 
Back
Top Bottom