GarretSidzaka said:
how do you make a civic add a promotion?
I have no idea. I know some leader traits add promotions (e.g. the protective bonus that gives drill I and city garrison I), if you can find out how they do that, you can make the civic do that. I suspect it's not terribly complicated, but I'm a noob at python right now so I don't think I'll be able to help a lot.
Edit: Ok, I found something that may be useful. If you go into Warlords/Assets/XML/Civilizations/CIV4TraitInfos.xml you find all of the trait info, including the info for the aggressive and protective unit promotions. Quick question, do you use an xml file to alter the civics?
Edit: Ok, I found the xml file for civics, so I answered my question above. I think it's just a matter of popping that text in, but don't I know if civ would recognize it.
Try popping this into hereditary rule and see if your melee and gunpowder units start getting combat I:
Code:
<FreePromotions>
<FreePromotion>
<PromotionType>PROMOTION_COMBAT1</PromotionType>
<bFreePromotion>1</bFreePromotion>
</FreePromotion>
</FreePromotions>
<FreePromotionUnitCombats>
<FreePromotionUnitCombat>
<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
<bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
</FreePromotionUnitCombat>
<FreePromotionUnitCombat>
<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
<bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
</FreePromotionUnitCombat>
</FreePromotionUnitCombats>
Edit: Nevermind. It gave me like 3,000,000 errors when I tried that. It wasn't expecting to see unit promotions in the civics. There's more to getting this to work than I thought.
Edit: Line 510 and below of the Warlords/Assets/XML/Gameinfo/CIV4GameInfoSchema.xml file seems to dictate what civ looks for and how civ uses it. This file does not appear in any mods that I have, with the exception of the warlords expansion. I'm actually somewhat curious to see what was changed. Anyway, I'll keep experimenting and see if I can get this to work.