Casworon
Prince
- Joined
- Aug 9, 2014
- Messages
- 548
I'm making a mod to allow all civilizations to rush the production of wonders by 10% using a builder charge.
I first modified china's ability to remove the free worker charge and change the wonder percentage by 10%
Then i changed the max build era so it can rush wonders in any Era
Then i added china's 'first emperor' trait to the other leaders. All using the same template, this is the example for Roosevelt below
This worked fine for the original leaders from the vanilla civ vi release and also works fine for the Rise and Fall civs. However when i try this with DLC leaders it creates an error and doesn't work. But i have no idea what i'm doing wrong
I first modified china's ability to remove the free worker charge and change the wonder percentage by 10%
Code:
<GameData>
-<ModifierArguments>
<Delete ModifierId="TRAIT_ADJUST_BUILDER_CHARGES"/>
-<Row>
<ModifierId>TRAIT_ADJUST_BUILDER_CHARGES</ModifierId>
<Name>Amount</Name>
<Value>0</Value>
</Row>
<Delete ModifierId="TRAIT_BUILDER_WONDER_PERCENT"/>
-<Row>
<ModifierId>TRAIT_BUILDER_WONDER_PERCENT</ModifierId>
<Name>Amount</Name>
<Value>10</Value>
</Row>
</ModifierArguments>
</GameData>
Then i changed the max build era so it can rush wonders in any Era
Code:
<GameData>
<UnitCommands>
-<Update>
<Where CommandType="UNITCOMMAND_WONDER_PRODUCTION"/>
<Set MaxEra="8"/>
</Update>
</UnitCommands>
</GameData>
Then i added china's 'first emperor' trait to the other leaders. All using the same template, this is the example for Roosevelt below
Code:
<GameData>
<LeaderTraits>
<Delete LeaderType="LEADER_T_ROOSEVELT"/>
<Row LeaderType="LEADER_T_ROOSEVELT" TraitType="TRAIT_LEADER_ROOSEVELT_COROLLARY"/>
<Row LeaderType="LEADER_T_ROOSEVELT" TraitType="FIRST_EMPEROR_TRAIT"/>
</LeaderTraits>
</GameData>
This worked fine for the original leaders from the vanilla civ vi release and also works fine for the Rise and Fall civs. However when i try this with DLC leaders it creates an error and doesn't work. But i have no idea what i'm doing wrong
Last edited: