Lonecat Nekophrodite
Emperor
- Joined
- Jan 10, 2019
- Messages
- 1,635
What are 'Clear Terrains' as defined in UnitAbilites.xml, and Modifiers.xml ?
So far there's no clear definitions of 'Clear terrain' beyond the in game effects that add +1 movements to TWO chariot class units. Even with @raen 's tools I still se nothing fruitful to exploit in codings. (I'm about to modify Heavycav class abilities to grant combat stenght bonus attacking enemy in open terrain (or alternatively to deal less damage when attacking enemy units stationed in a closed terrains (woods, jungles, marshes, districts). So far no codes beyond the followings.
- UnitsAbilites.xml
- Modifiers.xml
Where 'Clear terrain' referred in two files actually is? Or any other codings that will grant an ability to do extra damage against target standing on a said clear terrain plot (with neither 'features' nor 'districts' and not with defesible improvements (Forts, Chateau and Alcazar) and wonders so Heavycav class can use this ability?
So far there's no clear definitions of 'Clear terrain' beyond the in game effects that add +1 movements to TWO chariot class units. Even with @raen 's tools I still se nothing fruitful to exploit in codings. (I'm about to modify Heavycav class abilities to grant combat stenght bonus attacking enemy in open terrain (or alternatively to deal less damage when attacking enemy units stationed in a closed terrains (woods, jungles, marshes, districts). So far no codes beyond the followings.
- UnitsAbilites.xml
Code:
...
<UnitAbilityModifiers>
...
<Row>
<UnitAbilityType>ABILITY_HEAVY_CHARIOT</UnitAbilityType>
<ModifierId>HEAVYCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
</Row>
...
<Row>
<UnitAbilityType>ABILITY_LIGHT_CHARIOT</UnitAbilityType>
<ModifierId>LIGHTCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
</Row>
</UnitAbilityModifiers>
<Modifiers>
...
<Row>
<ModifierId>HEAVYCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_CLEAR_TERRAIN_START_MOVEMENT</ModifierType>
</Row>
...
<Row>
<ModifierId>LIGHTCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_CLEAR_TERRAIN_START_MOVEMENT</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
...
<Row>
<ModifierId>HEAVYCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
...
<Row>
<ModifierId>LIGHTCHARIOT_FASTER_CLEAR_TERRAIN</ModifierId>
<Name>Amount</Name>
<Value>2</Value>
</Row>
...
</ModifierArguments>
- Modifiers.xml
Code:
...
<DynamicModifiers>
...
<Row>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_CLEAR_TERRAIN_START_MOVEMENT</ModifierType>
<CollectionType>COLLECTION_OWNER</CollectionType>
<EffectType>EFFECT_ADJUST_UNIT_CLEAR_TERRAIN_START_MOVEMENT</EffectType>
</Row>
...
</DynamicModifiers>
Where 'Clear terrain' referred in two files actually is? Or any other codings that will grant an ability to do extra damage against target standing on a said clear terrain plot (with neither 'features' nor 'districts' and not with defesible improvements (Forts, Chateau and Alcazar) and wonders so Heavycav class can use this ability?