TC01
Deity
Im trying to create a unique unit for the Hippus which replaces the normal Champion unit. I have no problem actually creating the unit in Civ4UnitInfos (I can place it in world builder), but I cant build the unit in game or upgrade to it from an axeman. Instead it just upgrades to the normal champion. What other file do I need to change?
Under CIV4CivilizationInfos.xml, for every civ, there is a section called Units which defines what UUs they have. In FFH it's also used to prevent many civs from building unique world units like dragons, Apocalypse riders, and heroes (except for their civs).
Code:
<Units>
[COLOR="Red"] <Unit>
<UnitClassType>UNITCLASS_CHAMPION</UnitClassType>
<UnitType>UNIT_HIPPUS_CHAMPION</UnitType>
</Unit>[/COLOR]
<Unit>
<UnitClassType>UNITCLASS_DEMAGOG</UnitClassType>
<UnitType>NONE</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_FLAGBEARER</UnitClassType>
<UnitType>NONE</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_MERCENARY</UnitClassType>
<UnitType>UNIT_MERCENARY_MOUNTED</UnitType>
</Unit>
HIPPUS_CHAMPION would be your unit. It tells the game that, instead of building UNITCLASS_CHAMPION's default UNIT_CHAMPION that the Hippus build UNIT_HIPPUS_CHAMPION.