Civ4unitclassinfos

This page is incomplete and is missing information.
Please do not remove this notice until it is completed.

Summary

This file is associated with unique unit functionality, but all units in the game have to be declared here. All unique units link to this file and this is the file that makes a Roman Praetorian a Swordsman, a US Navy SEAL a Marine, or a Redcoat a Musketman. This file is linked to by Civ4UnitInfos.xml and Civ4CivilizationInfos.xml

Single-Line Tags

Text Tags

Type = Label for the unit class. This tag is used to link XML documents to this unit type.
Description = Displayed name for this unit.
DefaultUnit = Links to Civ4UnitInfos.xml which declares the default stats of all units in this class.

Integer Tags

iMaxGlobalInstances = sets maximum number of this unit that can be built in the world. If set to 1, only one can be built by any civilization. Can be used to define a unit as a World Unit. Set to -1 to enable unlimited building of this unit type.
iMaxTeamInstances = sets maximum number of this unit that can be built by your team. Set to -1 to enable unlimited building of this unit type.
iMaxPlayerInstances = sets maximum number of units of this type that can be built by any civilization. Can be used to define a unit as a National Unit with X number of units available per Civ. Set to -1 to enable unlimited building of this unit type.
iInstanceCostModifier = UNKNOWN EFFECT

Example

<UnitClassInfo>
            <Type>UNITCLASS_WORKER</Type>
            <Description>TXT_KEY_UNIT_WORKER</Description>
            <iMaxGlobalInstances>-1</iMaxGlobalInstances>
            <iMaxTeamInstances>-1</iMaxTeamInstances>
            <iMaxPlayerInstances>-1</iMaxPlayerInstances>
            <iInstanceCostModifier>0</iInstanceCostModifier>
            <DefaultUnit>UNIT_WORKER</DefaultUnit>
        </UnitClassInfo>
<UnitClassInfo>
            <Type>UNITCLASS_BASIUM</Type>
            <Description>TXT_KEY_UNIT_BASIUM</Description>
            <iMaxGlobalInstances>1</iMaxGlobalInstances>
            <iMaxTeamInstances>-1</iMaxTeamInstances>
            <iMaxPlayerInstances>-1</iMaxPlayerInstances>
            <iInstanceCostModifier>0</iInstanceCostModifier>
            <DefaultUnit>UNIT_BASIUM</DefaultUnit>
        </UnitClassInfo>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License