Aheadatime
Prince
- Joined
- Dec 21, 2009
- Messages
- 325
So I'm trying to learn how to modify units, which is something completely new to me. I decided to start with the Spanish Conquistador. Found this line of code, and attempted to mod it. Here's original;
My attempt was simple;
So was this a correct way to try this? It didn't work btw. I also have no idea what the 'InsertOrAbort' thing is, as that's usually where I see the term 'Row'.
Spoiler :
Code:
<Units>
-<InsertOrAbort>
<Class>UNITCLASS_KNIGHT</Class>
<Type>UNIT_SPANISH_CONQUISTADOR</Type>
<PrereqTech>TECH_CHIVALRY</PrereqTech>
<Combat>20</Combat>
<Cost>135</Cost>
<FaithCost>270</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>4</Moves>
<CombatClass>UNITCOMBAT_MOUNTED</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_SPANISH_CONQUISTADOR</Description>
<Civilopedia>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_TEXT</Civilopedia>
<Strategy>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_STRATEGY</Strategy>
<Help>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_HELP</Help>
<FoundAbroad>true</FoundAbroad>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_MILITARY_SCIENCE</ObsoleteTech/>
<GoodyHutUpgradeUnitClass>UNITCLASS_CAVALRY</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>25</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_U_SPANISH_CONQUISTADOR</UnitArtInfo>
<IconAtlas>DLC02_UNIT_ATLAS</IconAtlas>
<UnitFlagAtlas>DLC02_UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>1</UnitFlagIconOffset>
<PortraitIndex>1</PortraitIndex>
</InsertOrAbort>
</Units>
My attempt was simple;
Spoiler :
Code:
<Units>
<Delete Type="UNIT_SPANISH_CONSQUISTADOR"/>
<InsertOrAbort>
<Class>UNITCLASS_HORSEMAN</Class>
<Type>UNIT_SPANISH_CONQUISTADOR</Type>
<PrereqTech>TECH_HORSEBACK_RIDING</PrereqTech>
<Combat>12</Combat>
<Cost>80</Cost>
<FaithCost>160</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>4</Moves>
<CombatClass>UNITCOMBAT_MOUNTED</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_SPANISH_CONQUISTADOR</Description>
<Civilopedia>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_TEXT</Civilopedia>
<Strategy>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_STRATEGY</Strategy>
<Help>TXT_KEY_CIV5_SPAIN_CONQUISTADOR_HELP</Help>
<Found>true</Found>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_CHIVALRY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_KNIGHT</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>25</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_U_SPANISH_CONQUISTADOR</UnitArtInfo>
<IconAtlas>DLC02_UNIT_ATLAS</IconAtlas>
<UnitFlagAtlas>DLC02_UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>1</UnitFlagIconOffset>
<PortraitIndex>1</PortraitIndex>
</InsertOrAbort>
</Units>
So was this a correct way to try this? It didn't work btw. I also have no idea what the 'InsertOrAbort' thing is, as that's usually where I see the term 'Row'.