Hey, guys. I am still in trouble with my Alice MOD.
My leader, Alice, is equipped with 2 abilities:
1. Add +1 gold and +1 faith to forest tiles. ('Grimoire of Alice')
2. Add +1 production to lumber mills. (a part of 'Handling doll')
For there is no exact modifier defining forest tile and lumber mill in the original files, I wrote the requirement sets. However this does not work, although the mod can run smoothly.
Here is my code (about the modifiers):
I don't know what is wrong with the mod. Can anyone help me with this?
The full Leader.XML is posted here.
My leader, Alice, is equipped with 2 abilities:
1. Add +1 gold and +1 faith to forest tiles. ('Grimoire of Alice')
2. Add +1 production to lumber mills. (a part of 'Handling doll')
For there is no exact modifier defining forest tile and lumber mill in the original files, I wrote the requirement sets. However this does not work, although the mod can run smoothly.
Here is my code (about the modifiers):
Code:
<LeaderTraits>
<Row LeaderType="LEADER_ALICE" TraitType="TRAIT_LEADER_GRIMOIRE_OF_ALICE"/>
<Row LeaderType="LEADER_ALICE" TraitType="TRAIT_LEADER_HANDLING_DOLLS"/>
</LeaderTraits>
<LeaderQuotes>
<Row LeaderType="LEADER_ALICE" Quote="LOC_LEADER_ALICE_QUOTE"/>
</LeaderQuotes>
<Traits>
<Row TraitType="TRAIT_LEADER_GRIMOIRE_OF_ALICE" Name="LOC_TRAIT_LEADER_GRIMOIRE_OF_ALICE_NAME" Description="LOC_TRAIT_LEADER_GRIMOIRE_OF_ALICE_DESCRIPTION"/>
<Row TraitType="TRAIT_LEADER_HANDLING_DOLLS" Name="LOC_LEADER_HANDLING_DOLLS_NAME" Description="LOC_LEADER_HANDLING_DOLLS_DESCRIPTION"/>
<Row TraitType="TRAIT_AGENDA_SOLITARY" Name="LOC_AGENDA_SOLITARY_NAME" Description="LOC_AGENDA_SOLITARY_DESCRIPTION"/>
</Traits>
<TraitModifiers>
<!--GRIMOIRE OF ALICE-->
<Row>
<TraitType>TRAIT_LEADER_GRIMOIRE_OF_ALICE</TraitType>
<ModifierId>ALICE_FOREST_GOLD</ModifierId>
</Row>
<Row>
<TraitType>TRAIT_LEADER_GRIMOIRE_OF_ALICE</TraitType>
<ModifierId>ALICE_FOREST_FAITH</ModifierId>
</Row>
<!--HANDLING DOLLS-->
<Row>
<TraitType>TRAIT_LEADER_HANDLING_DOLLS</TraitType>
<ModifierId>ALICE_LUMBER_MILL_PRODUCTION</ModifierId>
</Row>
<Row>
<TraitType>TRAIT_LEADER_HANDLING_DOLLS</TraitType>
<ModifierId>ALICE_WORKER_EXTRA_TIME</ModifierId>
</Row>
<Row>
<TraitType>TRAIT_LEADER_HANDLING_DOLLS</TraitType>
<ModifierId>ALICE_WORKER_DISTRICT_ACCELERATION</ModifierId>
</Row>
</TraitModifiers>
<Modifiers>
<!--GRIMOIRE OF ALICE-->
<Row>
<ModifierId>ALICE_FOREST_GOLD</ModifierId>
<ModifierType>MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>TERRAIN_IS_ALICE_FOREST</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>ALICE_FOREST_FAITH</ModifierId>
<ModifierType>MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>TERRAIN_IS_ALICE_FOREST</SubjectRequirementSetId>
</Row>
<!--HANDLING DOLLS-->
<Row>
<ModifierId>ALICE_LUMBER_MILL_PRODUCTION</ModifierId>
<ModifierType>REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES</ModifierType>
<SubjectRequirementSetId>REQUIRES_PLOT_HAS_LUMBER_MILL_SET</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>ALICE_WORKER_EXTRA_TIME</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_BUILDER_CHARGES</ModifierType>
<SubjectRequirementSetId>UNIT_IS_BUILDER</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>ALICE_WORKER_DISTRICT_ACCELERATION</ModifierId>
<ModifierType>MODIFIER_PLAYER_ADJUST_UNIT_DISTRICT_PERCENT</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<!--GRIMORE OF ALICE-->
<Row>
<ModifierId>ALICE_FOREST_GOLD</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>ALICE_FOREST_GOLD</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_GOLD</Value>
</Row>
<Row>
<ModifierId>ALICE_FOREST_FAITH</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>ALICE_FOREST_FAITH</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_FAITH</Value>
</Row>
<!--HANDLING DOLLS-->
<Row>
<ModifierId>ALICE_LUMBER_MILL_PRODUCTION</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>ALICE_LUMBER_MILL_PRODUCTION</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_PRODUCTION</Value>
</Row>
<Row>
<ModifierId>ALICE_WORKER_EXTRA_TIME</ModifierId>
<Name>Amount</Name>
<Value>2</Value>
</Row>
<Row>
<ModifierId>ALICE_WORKER_DISTRICT_ACCELERATION</ModifierId>
<Name>Amount</Name>
<Value>25</Value>
</Row>
</ModifierArguments>
<RequirementSets>
<Row>
<RequirementSetId>TERRAIN_IS_ALICE_FOREST</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
<Row>
<RequirementSetId>REQUIRES_PLOT_HAS_LUMBER_MILL_SET</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<RequirementSetRequirements>
<Row>
<RequirementSetId>TERRAIN_IS_ALICE_FOREST</RequirementSetId>
<RequirementId>PLOT_IS_FOREST_REQUIREMENT</RequirementId>
</Row>
<Row>
<RequirementSetId>REQUIRES_PLOT_HAS_LUMBER_MILL_SET</RequirementSetId>
<RequirementId>REQUIRES_PLOT_HAS_LUMBER_MILL</RequirementId>
</Row>
</RequirementSetRequirements>
<Requirements>
<Row>
<RequirementId>ALICE_PLOT_IS_FOREST_REQUIREMENT</RequirementId>
<RequirementType>REQUIREMENT_PLOT_FEATURE_TYPE_MATCHES</RequirementType>
</Row>
<Row>
<RequirementId>REQUIRES_PLOT_HAS_LUMBER_MILL</RequirementId>
<RequirementType>REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES</RequirementType>
</Row>
</Requirements>
<RequirementArguments>
<Row>
<RequirementId>ALICE_PLOT_IS_FOREST_REQUIREMENT</RequirementId>
<Name>FeatureType</Name>
<Value>FEATURE_FOREST</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLOT_HAS_LUMBER_MILL</RequirementId>
<Name>ImprovementType</Name>
<Value>IMPROVEMENT_LUMBER_MILL</Value>
</Row>
</RequirementArguments>
I don't know what is wrong with the mod. Can anyone help me with this?
The full Leader.XML is posted here.