[SOLVED] Trouble with Modifier based on Scythian Civilization's Extra Unit ModifierType

Whale Cancer

Chieftain
Joined
Nov 19, 2016
Messages
7
EDIT: Solved, was just a silly syntax error.

Hello!

I've been exploring creating new modifiers and I feel like I mainly have the hang of it. However, when trying to duplicate the Scythian ability to create an extra Scythian horse archer whenever they build one, but with tanks instead of horse archers, I can't seem to get it to work. I have also tried duplicate by tag (HEAVY_CHARIOT), but that didn't work either. I know the trait itself is being successfully applied to the leader, as the other effect (extra military policy slot ) works.

Here is my code:
Code:
<TraitModifiers>
<Row TraitType="TRAIT_LEADER_BREZHNEV_DOCTRINE" ModifierId="TRAIT_MILITARY_GOVERNMENT_SLOT"/>
<Row TraitType="TRAIT_LEADER_BREZHNEV_DOCTRINE" ModifierId="TRAIT_EXTRA_TANK"/>
</TraitModifiers>

Code:
<Modifiers>
<Row TraitType="TRAIT_EXTRA_TANK" ModifierType="MODIFIER_PLAYER_UNITS_ADJUST_EXTRA_UNIT_COPY"/>
</Modifiers>

Code:
<ModifierArguments>     
<Row TraitType="TRAIT_EXTRA_TANK" Name="UnitType" Value="UNIT_TANK"/>
<Row TraitType="TRAIT_EXTRA_TANK" Name="Amount" Value="1"/>
</ModifierArguments>

Any help appreciated.
 
Last edited:
Back
Top Bottom