How do you make a unit only one per civ?

GarretSidzaka

Modder
Joined
Dec 17, 2002
Messages
4,700
i am making powerful satelite unit that i want limited. i want it so that a civ can only have one of these puppies out at a time. where do i look for the .xml for this?? specifically: which file(s)??? :confused::confused::confused:
 
GarretSidzaka said:
i am making powerful satelite unit that i want limited. i want it so that a civ can only have one of these puppies out at a time. where do i look for the .xml for this?? specifically: which file(s)??? :confused::confused::confused:

CIV4UnitClassInfoes.xml controls that. If you wanted the unit to be limited to only 1 per civ you would want it defined as follows:

Code:
		<UnitClassInfo>
			<Type>UNITCLASS_CONJURER</Type>
			<Description>TXT_KEY_UNIT_CONJURER</Description>
			<iMaxGlobalInstances>-1</iMaxGlobalInstances>
			<iMaxTeamInstances>-1</iMaxTeamInstances>
[b]			<iMaxPlayerInstances>1</iMaxPlayerInstances>[/b]
			<DefaultUnit>UNIT_CONJURER</DefaultUnit>
		</UnitClassInfo>
 
Back
Top Bottom