Page 1 of 1
Determining limit of a specific trooper [Solved]
Posted: Mon Nov 03, 2014 3:29 pm
by 15Cyber
On my map Anakin is a playable character as any trooper, but I want there to be only one anakin on the battlefield, not 4 or 5 as it happens. How do I determine a limit? to be only one on the battlefield
Re: Determining limit of a specific trooper
Posted: Mon Nov 03, 2014 6:14 pm
by jedimoose32
Go to your map's lua file (for example ABCc_con.lua) and find the setup teams section near the bottom. By default you should see the list of unit classes and their limits. Here's one example:
Code: Select all
officer = {"rep_inf_ep3_officer",1, 5}
The first number that you see after the unit name is the minimum number of this kind of unit, and the second one is the maximum. Just change both to 1 for your Anakin unit and you're all set.
Re: Determining limit of a specific trooper
Posted: Mon Nov 03, 2014 7:18 pm
by 15Cyber
Thank you

Re: Determining limit of a specific trooper
Posted: Mon Nov 03, 2014 8:59 pm
by AceMastermind
Yeah, and if I recall, you could also set an absolute number instead of min/max, like this:
Code: Select all
officer = {"rep_inf_ep3_officer",1}
Re: Determining limit of a specific trooper [Solved]
Posted: Mon Nov 03, 2014 9:21 pm
by jedimoose32
I always thought that defined only a maximum value and left out the minimum. That's really good to know. Thanks Ace!
Re: Determining limit of a specific trooper [Solved]
Posted: Mon Nov 03, 2014 9:34 pm
by AceMastermind
You might be right, it's been years since i've done any experimenting with that.
I did try it without any min/max numbers at all and the game filled in the unit randomly.
viewtopic.php?f=27&t=15462&p=265986#p265986
Re: Determining limit of a specific trooper [Solved]
Posted: Mon Nov 03, 2014 10:16 pm
by MileHighGuy
recently I just had one 0 put in and there were still troops spawning. 0,0 made no troops spawn.
Re: Determining limit of a specific trooper [Solved]
Posted: Mon Nov 03, 2014 10:25 pm
by jedimoose32
From what you're both saying it sounds like putting just one value only defines a minimum and leaves the maximum up the game to decide.