Quick little modding question.

BenjaminEmbarec

Warlord
Joined
Apr 8, 2009
Messages
161
Hey quick question, where/how do you define whether a unit is national, world, or not? Say if I wanted to make scouts a national unit, or workers... or if I wanted to make it so that phalanxes or archmages no longer were? Or say I'm cloning Wilboman and want to make it so that the clone isn't a world unit? I can't make heads or tails of this code.
 
You need to edit Assets\XML\Units\CIV4UnitClassInfos.xml

To make the phalanx, the archmage and the Wilboman clone common units make sure their iMaxGlobalInstances, iMaxTeamInstances and iMaxPlayerInstances are set as below:
Code:
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
 
Thanks! What if you wanted to modify the level required to upgrade, like upping Immortal to require level 8 or removing the Mage requirement altogether or....?
 
its <iMinLevel>0</iMinLevel> in CIV4UnitInfos.xml

edit/ too slow
 
Back
Top Bottom