Is there a way to mod Single Units?

I want the ability to build single units back!

Would love to see the ability to promote units into hero's, is this possible?

 

 

7,242 views 9 replies
Reply #1 Top

Put this in the unittype: <AllowGrouping>0</AllowGrouping>

Units cannot be promoted to champions.

Reply #2 Top

What file is this in?

 

Thanks!

Reply #3 Top

Depends what unit you want to limit.

Edit: Oh, you want to be able to build single units in a city. I don't know if that is possible. Check out CoreUnitGroupingTypes.xml and what I posted above has nothing to do with that.

Reply #4 Top

Can't find the file CoreUnitGroupingTypes.xml?

I don't want to change the core units, just build a medic (single unit).  I tried to upgrade the Pioneer (single unit) but doesn't work. The modding seems very limited if you can't even change little things like this.

 

Reply #5 Top

In that case, in your new unittype use <AllowGrouping>0</AllowGrouping>

Have you made a new item? Or how are you trying to mod this in?

Reply #6 Top

 

I created a new unit Healer, then when to C:\Documents and Settings\Admin\My Documents\My Games\Elemental\Units

 

Edited the file Healer_1155726780-6502.xml

 

Added <AllowGrouping>0</AllowGrouping> to the end of UnitType like below.

 

             <UnitType>          
.
.                ...
                <AllowGrouping>0</AllowGrouping>
        </UnitType>
  </UnitTypes>

 

Saved file, restarted the game and tried to build the unit Healer, and got more than one!

 

 

 

 

 

Reply #7 Top

That's all I know, that's how the recruitable dragon works. Probably interfering with some other tag, you'll have to experiment.

Reply #8 Top

Maybe check out pioneers since they are supposed to be single units.

Reply #9 Top

Quoting DsRaider, reply 8
Maybe check out pioneers since they are supposed to be single units.

 

When you upgrade pioneers, you get multiple units!

 

I'm going to try to add the custom unit I want to the CoreUnits.xml, to see if that works!