Social_Mech
Chieftain
- Joined
- Feb 8, 2021
- Messages
- 28
NOTE: This is an update of my old post. This is the new code I'm using (which, of course, doesn't work).
I'm trying to give Amani a promotion that gives a City-State defensive strength and/or gives the City State units within the borders combat strength. I want the promotion to NOT give any other units combat strength. I tried just using two of Victor's governor promotions and I placed them on one of Amani's promotions.
I cannot get this to work. Any ideas?
I'm trying to give Amani a promotion that gives a City-State defensive strength and/or gives the City State units within the borders combat strength. I want the promotion to NOT give any other units combat strength. I tried just using two of Victor's governor promotions and I placed them on one of Amani's promotions.
Code:
<Modifiers>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1" ModifierType="MODIFIER_ALL_CITIES_ATTACH_MODIFIER"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1_MODIFIER" ModifierType="MODIFIER_CITY_ADJUST_INNER_DEFENSE" OwnerRequirementSetId="SM_AMBASSADOR_REQS" OwnerStackLimit="1"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2" ModifierType="MODIFIER_ALL_CITIES_ATTACH_MODIFIER"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2_MODIFIER" ModifierType="MODIFIER_CITY_ADJUST_CITY_COMBAT_BONUS" OwnerRequirementSetId="SM_AMBASSADOR_REQS" OwnerStackLimit="1"/>
</Modifiers>
<ModifierArguments>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1" Name="ModifierId" Value="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1_MODIFIER"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1_MODIFIER" Name="Amount" Value="50"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2" Name="ModifierId" Value="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2_MODIFIER"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2_MODIFIER" Name="Amount" Value="50"/>
</ModifierArguments>
<ModifierStrings>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2_MODIFIER" Context="Preview" Text="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2_MODIFIER_PREV"/>
</ModifierStrings>
<RequirementSets>
<Row RequirementSetId="SM_AMBASSADOR_REQS" RequirementSetType="REQUIREMENTSET_TEST_ALL"/>
</RequirementSets>
<RequirementSetRequirements>
<Row RequirementSetId="SM_AMBASSADOR_REQS" RequirementId="SM_PLAYER_IS_CITY_STATE"/>
<Row RequirementSetId="SM_AMBASSADOR_REQS" RequirementId="SM_REQUIREMENT_CITY_HAS_AFFLUENT_AMANI"/>
</RequirementSetRequirements>
<Requirements>
<Row RequirementId="SM_PLAYER_IS_CITY_STATE" RequirementType="REQUIREMENT_PLAYER_IS_MINOR"/>
<Row RequirementId="SM_REQUIREMENT_CITY_HAS_AFFLUENT_AMANI" RequirementType="REQUIREMENT_CITY_HAS_SPECIFIC_GOVERNOR_PROMOTION_TYPE"/>
</Requirements>
<RequirementArguments>
<Row RequirementId="SM_REQUIREMENT_CITY_HAS_AFFLUENT_AMANI" Name="GovernorPromotionType" Value="GOVERNOR_PROMOTION_AMBASSADOR_AFFLUENCE"/>
<Row RequirementId="SM_REQUIREMENT_CITY_HAS_AFFLUENT_AMANI" Name="Established" Value="true"/>
</RequirementArguments>
<GameModifiers>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1"/>
<Row ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2"/>
</GameModifiers>
<GovernorPromotionModifiers>
<!-- <Delete GovernorPromotionType="GOVERNOR_PROMOTION_AMBASSADOR_AFFLUENCE"/> -->
<Row GovernorPromotionType="GOVERNOR_PROMOTION_AMBASSADOR_AFFLUENCE" ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS1"/>
<Row GovernorPromotionType="GOVERNOR_PROMOTION_AMBASSADOR_AFFLUENCE" ModifierId="SM_DEFENSE_CITY_STATE_COMBAT_BONUS2"/>
</GovernorPromotionModifiers>
Last edited: