Civ4UnitClassInfos: Difference between revisions
Supercheese (talk | contribs) No edit summary |
(→Tags) |
||
Line 4: | Line 4: | ||
3mMfUO <a href="http://efdnwamamets.com/">efdnwamamets</a>, [url=http://xpqqzntkflou.com/]xpqqzntkflou[/url], [link=http://fogupyhtvhms.com/]fogupyhtvhms[/link], http://doznwwbaxuha.com/ | |||
= | |||
==Example== | ==Example== |
Revision as of 23:40, 23 April 2010
The Civ4UnitClassInfos file contains data about the different classes of units. A class is the underlying connection between a unique unit and the parent unit (for example, a Praetorian and Swordsman), as each civilization can only have one unit type in each class.
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
3mMfUO <a href="http://efdnwamamets.com/">efdnwamamets</a>, [url=http://xpqqzntkflou.com/]xpqqzntkflou[/url], [link=http://fogupyhtvhms.com/]fogupyhtvhms[/link], http://doznwwbaxuha.com/
Example
In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.
<UnitClassInfos> <UnitClassInfo> <Type>UNITCLASS_LION</Type> <Description>TXT_KEY_UNIT_LION</Description> <iMaxGlobalInstances>-1</iMaxGlobalInstances> <iMaxTeamInstances>-1</iMaxTeamInstances> <iMaxPlayerInstances>-1</iMaxPlayerInstances> <iInstanceCostModifier>0</iInstanceCostModifier> <DefaultUnit>UNIT_LION</DefaultUnit> </UnitClassInfo> </UnitClassInfos>