I don't have an amazing grasp on lua yet, and I don't know how to create a new modifier "DOFTerritoryBonusModifier", that gives +20% combat strength if you are inside the territory of a civilisation you have a Declaration of Friendship with.
This is what I have for the promotion so far, it's using the modifier that I haven't made yet
<GameData>
<UnitPromotions>
<Row>
<Type>PROMOTION_DOF_TERRITORY_BONUS</Type>
<Description>TXT_KEY_DOF_TERRITORY_BONUS</Description>
<Help>TXT_KEY_DOF_TERRITORY_BONUS_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<DOFTerritoryBonusModifier>20</DOFTerritoryBonusModifier>
<IconAtlas>ABILITY_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>TXT_KEY_PEDIA_DOF_TERRITORY_BONUS</PediaEntry>
</Row>
</UnitPromotions>
<Gamedata>
Basically, how do I create a modifier with this purpose, or is there a better way to do this that I am missing? And how do I give this promotion a name?
thanks
This is what I have for the promotion so far, it's using the modifier that I haven't made yet
<GameData>
<UnitPromotions>
<Row>
<Type>PROMOTION_DOF_TERRITORY_BONUS</Type>
<Description>TXT_KEY_DOF_TERRITORY_BONUS</Description>
<Help>TXT_KEY_DOF_TERRITORY_BONUS_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<DOFTerritoryBonusModifier>20</DOFTerritoryBonusModifier>
<IconAtlas>ABILITY_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>TXT_KEY_PEDIA_DOF_TERRITORY_BONUS</PediaEntry>
</Row>
</UnitPromotions>
<Gamedata>
Basically, how do I create a modifier with this purpose, or is there a better way to do this that I am missing? And how do I give this promotion a name?
thanks
