Scrolling through the various modding tutorials and reference sheets, I have found many XML commands with some comments (I am sincerely sorry for the author, and I apologize, but I don't remember who wrote this ). I am very interested in using the two following ones :
The problem is that I don't know what XML file(s) I have to change or in which file(s) I have to add the following lines. I don't even know if I have to create a new file.
Can someone help me... please !
PHP Code:
UnitCombatPromotions- if non-empty, contains free promotions that all units of a selected combat type receive. Format to fill is as follows:
XML:
<UnitCombatPromotions>
<UnitCombatPromotion>
<UnitCombat>UNITCOMBAT_ARCHER</UnitCombat>
<UnitPromotion>PROMOTION_COMBAT1</UnitPromotion>
</UnitCombatPromotion>
</UnitCombatPromotions>
The above would give all archery units a free Combat I promotion.
UnitClassPromotions- similar to above. If non-empty, contains free promotions for all units of a selected unit class to receive. Format as follows:
XML:
<UnitClassPromotions>
<UnitClassPromotion>
<UnitClass>UNITCLASS_AXEMAN</UnitClass>
<UnitPromotion>PROMOTION_SHOCK</UnitPromotion>
</UnitClassPromotion>
</UnitClassPromotions>
That would give all Axeman-class units Shock.
Can someone help me... please !

Comment