Hey all,
Anyone know how to change a unit's flag (the icon over the unit's head)?
Anyone know how to change a unit's flag (the icon over the unit's head)?
I removed some unrelated code to make it shorter for this example.
<GameDate>
<Units>
<Row>
<Class>UNITCLASS_SEMAPHORE</Class>
<Type>UNIT_SEMAPHORE</Type>
<!--<PrereqTech>TECH_AGRICULTURE</PrereqTech>-->
<Combat>1</Combat>
<Cost>-1</Cost>
<Moves>3</Moves>
<CombatClass>UNITCOMBAT_RECON</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_EXPLORE</DefaultUnitAI>
<Description>TXT_KEY_UNIT_SEMAPHORE</Description>
<Civilopedia>TXT_KEY_CIV_ANTIQUITY_SCOUT_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_SCOUT_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_SEMAPHORE</Help>
<NoBadGoodies>true</NoBadGoodies>
<Pillage>false</Pillage>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>false</MilitaryProduction>
<!--<ObsoleteTech>TECH_SCIENTIFIC_THEORY</ObsoleteTech>-->
<AdvancedStartCost>10</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_SEMAPHORE</UnitArtInfo>
[color=red]<UnitFlagAtlas>MY_SEMA_FLAG</UnitFlagAtlas>[/color]
[color=red]<UnitFlagIconOffset>0</UnitFlagIconOffset>[/color]
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>5</PortraitIndex>
</Row>
</Units>
</GameData>
<GameData>
<IconTextureAtlases>
<Row>
<Atlas>MY_SEMA_FLAG</Atlas>
<IconSize>32</IconSize>
<Filename>Icon_Flag_SEMAPHORE.DDS</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
</IconTextureAtlases>
</GameData>
So would I just look in CIV5Units.xml in the artillery's section and replace my modded unit's icon lines with that of the artillery's?