World Units

Underground

Chieftain
Joined
Jul 14, 2007
Messages
15
Hi all, a quick modding question. Where is it possible to limit the number of units that a civ may build? Is this done in the Editor or in Python? I expected to find it in the Editor, in the Units tab, but I'm not seeing it. Anyone know more than I do?

Thanks!
 
You have to look what the UNITCLASS of your Unit is and then open the Assets/XML/Units/CIV4UnitClassInfo.xml file and find the corresponding UNITCLASS in it. Then, you should see a tag like <MaxInstancePerPlayer> (I don't remember exactly). When it's set to -1, it means "no limit", 0 means "unable to build" and higher mean "limited to X".

Hope that helps :)
 
Call me stupid, but wouldn't "Maxinstancesperplayer" be for national units, not world units?
 
Oh, yeah. Me dumb. I should have taken the other tag as an example :lol:
 
Top Bottom