'Stache
Chieftain
- Joined
- Jan 10, 2019
- Messages
- 19
Hello!
I wrote this code. The game accepts it, without error messages, but it seems although the ability is functioning, the game never thinks the requirements are met.
I can't see the mistake. Granted, I am still new to modding civ.
Is there any way to check if the game is checking for the requirement?
I wrote this code. The game accepts it, without error messages, but it seems although the ability is functioning, the game never thinks the requirements are met.
I can't see the mistake. Granted, I am still new to modding civ.
Is there any way to check if the game is checking for the requirement?
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="ABILITY_STACHE_MILITIA" Kind="KIND_ABILITY"/>
</Types>
<TypeTags>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_MELEE"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_RANGED"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_RECON"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_HEAVY_CAVALRY"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_LIGHT_CAVALRY"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_RANGED_CAVALRY"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_ANTI_CAVALRY"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_NAVAL_MELEE"/>
<Row Type="ABILITY_STACHE_MILITIA" Tag="CLASS_HEAVY_CHARIOT"/>
</TypeTags>
<UnitAbilities>
<Row UnitAbilityType="ABILITY_STACHE_MILITIA" Name="LOC_ABILITY_STACHE_MILITIA" Description="LOC_ABILITY_STACHE_MILITIA" Inactive="true"/>
</UnitAbilities>
<UnitAbilityModifiers>
<Row>
<UnitAbilityType>ABILITY_STACHE_MILITIA</UnitAbilityType>
<ModifierId>STACHE_MILITIA_ADJUST_IN_TERRITORY_COMBAT</ModifierId>
</Row>
</UnitAbilityModifiers>
<Modifiers>
<Row>
<ModifierId>STACHE_MILITIA_GRANTING</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNITS_GRANT_ABILITY</ModifierType>
<Permanent>true</Permanent>
</Row>
<Row>
<ModifierId>STACHE_MILITIA_ADJUST_IN_TERRITORY_COMBAT</ModifierId>
<ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType>
<SubjectRequirementSetId>REQUIREMENTS_UNITS_IN_OWNER_TERRITORY</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>STACHE_MILITIA_ADJUST_IN_TERRITORY_COMBAT</ModifierId>
<Name>Amount</Name>
<Value>10</Value>
</Row>
<Row>
<ModifierId>STACHE_MILITIA_GRANTING</ModifierId>
<Name>AbilityType</Name>
<Value>ABILITY_STACHE_MILITIA</Value>
</Row>
</ModifierArguments>
<RequirementSets>
<Row>
<RequirementSetId>REQUIREMENTS_UNITS_IN_OWNER_TERRITORY</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<RequirementSetRequirements>
<Row>
<RequirementSetId>REQUIREMENTS_UNITS_IN_OWNER_TERRITORY</RequirementSetId>
<RequirementId>UNIT_IN_OWNER_TERRITORY_REQUIREMENT_STACHE_MILITIA</RequirementId>
</Row>
</RequirementSetRequirements>
<Requirements>
<Row>
<RequirementId>UNIT_IN_OWNER_TERRITORY_REQUIREMENT_STACHE_MILITIA</RequirementId>
<RequirementType>REQUIREMENT_UNIT_IN_OWNER_TERRITORY</RequirementType>
</Row>
</Requirements>
<TraitModifiers>
<Row TraitType="TRAIT_CIVILIZATION_STACHE_THALVARIA" ModifierId="STACHE_MILITIA_GRANTING"/>
</TraitModifiers>
</GameInfo>
Last edited: