Craig_Sutter
Deity
I am trying to create a leader trait that adjusts barracks costs by 50%. I could not find a direct example... however, I used Valetta's trait that gives bonuses to suzerains to build walls as a template. I added in the trait, and removed any suzerain requirements... however, I got a crash to the main menu.
Is what I am doing possible? Or is there another workable method?
Code is here:
Is what I am doing possible? Or is there another workable method?
Code is here:
Code:
<TraitModifiers>
<Row TraitType="TRAIT_LEADER_TRELLEBORG_FORTRESSES" ModifierId="TRAIT_ADJUST_BARRACKS_BUILDING_COSTS"/>
</TraitModifiers>
<Modifiers
<Row>
<ModifierId>TRAIT_ADJUST_BARRACKS_BUILDING_COSTS</ModifierId>
<ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_BUILDING_PURCHASE_COST</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>TRAIT_ADJUST_BARRACKS_BUILDING_COSTS</ModifierId>
<Name>BuildingType</Name>
<Value>BUILDING_BARRACKS</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADJUST_BARRACKS_BUILDING_COSTS</ModifierId>
<Name>Amount</Name>
<Value>50</Value>
</Row>
</ModifierArguments>