I just add one thing, cause it is true there's so much to say about this... I have even succeeded to limit the nuclear weapons to the civilizations that would build a national wonder "manhattan project". So ... so much we could say....
Well the precision...
We must precise the fact you can find several units with the same class.
Code:<UnitClassInfo> <Type>UNITCLASS_TERRY</Type> <Description>TXT_KEY_UNIT_TERRY</Description> <iMaxGlobalInstances>-1</iMaxGlobalInstances> <iMaxTeamInstances>-1</iMaxTeamInstances> <iMaxPlayerInstances>-1</iMaxPlayerInstances> <DefaultUnit>UNIT_TERRY</DefaultUnit> </UnitClassInfo>
When you are here you see this: <DefaultUnit>UNIT_TERRY</DefaultUnit>
This tell the game what is the default unit for this class.
In the file \Assets\xml\civilizations\CIV4CivilizationInfos.xml you can give some units to some civilizations. These units will replace the default unit. You can add several units to a civilization.
Exemple I have done
Code:<Units> <Unit> <UnitClassType>UNITCLASS_MUSKETMAN</UnitClassType> <UnitType>UNIT_FRENCH_MUSKETEER</UnitType> </Unit> <Unit> <UnitClassType>UNITCLASS_INFANTRY</UnitClassType> <UnitType>UNIT_INFANTRY_WW1</UnitType> </Unit> <Unit> <UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType> <UnitType>UNIT_MINUTEMAN</UnitType> </Unit> </Units>
This command the game to use 3 special units for the france. The 3 units are from the classes of UNITCLASS_MUSKETMAN ; UNITCLASS_INFANTRY and UNIT_INFANTRY_WW1.
So basically you can add here some specific units for a civilization without limit (except the hardcoded limits).
how did you do that?