I have added the levy unit into the game, not a problem. But now I want to change it into ethnic, since the last version (version2) supports it. So the big question is how to do it, what controls it?
This is how the artdefine is set up as a basic unit:
This is how the artdefine is set up as a basic unit:
Spoiler :
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_LEVY</Type>
<DamageStates>1</DamageStates>
<Formation>Phalanx</Formation>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_LEVY</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberInfoType>
<NumMembers>4</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_LEVY</Type>
<Scale>0.140000000596046</Scale>
<Model>levy.fxsxml</Model>
<MaterialTypeTag>ARMOR</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>ARMOR</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady Walk AttackCharge</EnableActions>
<ShortMoveRadius>12.0</ShortMoveRadius>
<ShortMoveRate>0.349999994039536</ShortMoveRate>
<TargetHeight>8.0</TargetHeight>
<HasRefaceAfterCombat>1</HasRefaceAfterCombat>
<ReformBeforeCombat>1</ReformBeforeCombat>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<WeaponTypeTag>METAL</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>SPEAR</WeaponTypeSoundOverrideTag>
</Row>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<Index>1</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>10.0</VisKillStrengthMin>
<VisKillStrengthMax>20.0</VisKillStrengthMax>
<WeaponTypeTag>FLAMING_ARROW</WeaponTypeTag>
<MissTargetSlopRadius>10.0</MissTargetSlopRadius>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_LEVY</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Spearman.dds</Asset>
</Row>
</ArtDefine_StrategicView>
</GameData>
<Row>
<Type>ART_DEF_UNIT_LEVY</Type>
<DamageStates>1</DamageStates>
<Formation>Phalanx</Formation>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_LEVY</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberInfoType>
<NumMembers>4</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_LEVY</Type>
<Scale>0.140000000596046</Scale>
<Model>levy.fxsxml</Model>
<MaterialTypeTag>ARMOR</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>ARMOR</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady Walk AttackCharge</EnableActions>
<ShortMoveRadius>12.0</ShortMoveRadius>
<ShortMoveRate>0.349999994039536</ShortMoveRate>
<TargetHeight>8.0</TargetHeight>
<HasRefaceAfterCombat>1</HasRefaceAfterCombat>
<ReformBeforeCombat>1</ReformBeforeCombat>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<WeaponTypeTag>METAL</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>SPEAR</WeaponTypeSoundOverrideTag>
</Row>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LEVY</UnitMemberType>
<Index>1</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>10.0</VisKillStrengthMin>
<VisKillStrengthMax>20.0</VisKillStrengthMax>
<WeaponTypeTag>FLAMING_ARROW</WeaponTypeTag>
<MissTargetSlopRadius>10.0</MissTargetSlopRadius>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_LEVY</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Spearman.dds</Asset>
</Row>
</ArtDefine_StrategicView>
</GameData>