Page 1 of 1

simple question - unit limit

Posted: Sat Apr 28, 2007 11:02 am
by Dymon
Hi there...

I still don't know where (or how) to change the limit of the units, so that let's say only 3 engineers instead of 3 can be played ingame...

Could any1 pls tell me where to change?

thx

Posted: Sat Apr 28, 2007 12:07 pm
by Caleb1117
I don't fully understand what your asking, but just about everything about numbers, limits, and reinforcements are in the lua

Code: Select all

     SetupTeams{
	all = {
	team = ALL,
	units = 26,
	reinforcements = 200,
	soldier	= { "all_inf_rifleman",9, 25},
	assault	= { "all_inf_rocketeer",1,4},
	engineer = { "all_inf_engineer",1,4},
	sniper	= { "all_inf_sniper",1,4},
	officer	= { "all_inf_officer",1,4},
	special	= { "all_inf_wookiee",1,4},


	},
	imp = {
	team = IMP,
	units = 25,
	reinforcements = 200,
	soldier    = { "imp_inf_rifleman",9, 25},
	assault   = { "imp_inf_rocketeer",1,4},
	engineer = {"imp_inf_engineer",1,4},
	sniper     = { "imp_inf_sniper",1,4},
	officer     = { "imp_inf_officer",1,4},
	special    ={ "imp_inf_dark_trooper",1,4},
		},
	}
The "units = 25," Line sets the max number of active units in play at any given time, on that side. So if I set the rebel side to "units = 60," there would be 60 rebels on the map.

The "reinforcements = 200," Line refers to reinforcements, the default is 150.

soldier = { "imp_inf_rifleman",9, 25}, Now the last part of the troop lines are diffrent, the first number sets the Minimum number of of units that will spawn as that class, so at any one moment there will be atleast 9 stormies.

Now the game fills all the minimum slots, so there are 9 stormies, 1 sniper, 1 rocketeer, ETC Then if it still has left over units it will spawn more snipers, troopers, ETC untill it reaches the 2nt number, which sets the maximum number of said unit.

So if the game has enough units to fill all the BASE numbers, It will randomly start to fill in towards the MAX number

I hope that helped.

Posted: Sat Apr 28, 2007 12:13 pm
by Dymon
good to know, but not the information i needed :D


I wanted to know how to set up the unit limit, for example there can only be a maximum of 4 jettroopers in most shipped maps... and i want this to decrease :roll:

Posted: Sat Apr 28, 2007 12:18 pm
by Teancum
He just told you exactly how to do that. :roll:
the 2nd number, which sets the maximum number of said unit.
Read before you roll your eyes.

Posted: Sat Apr 28, 2007 12:32 pm
by Dymon
if this would be correct there could only be 4 units per type in every shipped map! and in clanwars we're usually starting with 6++ engineers... so it can't be true...

Posted: Sat Apr 28, 2007 12:35 pm
by Teancum
It is true. That lua could have been from any map, even his own, so those settings could be different. All shipped maps have those limits, so if it's something different online then it's a dedicated server change.

Posted: Sat Apr 28, 2007 12:39 pm
by Teancum
Like I said above, dedicated servers can change that.

Posted: Sat Apr 28, 2007 1:31 pm
by Luke
OFF TOPIC: Yooooouuuu buuuummmped!!!

- :vader:

Posted: Sat Apr 28, 2007 3:56 pm
by -_-
Luke, if you dont have anything worthy to contribute to this thread, dont post it. :evil:

Posted: Sat Apr 28, 2007 7:58 pm
by YankFan1950
that is the default lua mine looks like this put in any number as long as the left number for every unit adds up to the number of units on the field:
SetupTeams{
rep = {
team = REP,
units = 128,
reinforcements = 680,
soldier = { "rep_inf_ep3_rocketeer",10, 10},
assault = { "rep_inf_ep3_engineer",25, 25},
engineer = { "rep_inf_ep3_sniper_felucia",10, 10},
sniper = { "rep_inf_ep3_officer",1, 1},
officer = {"rep_inf_ep3_marine",25, 25},
special = { "rep_inf_ep3_jettrooper",10, 10},
AddUnitClass(REP, "rep_inf_ep3_rifleman",48,48)


},
cis = {
team = CIS,
units = 128,
reinforcements = 650,
soldier = { "cis_inf_rifleman",10,10 },
assault = { "cis_inf_rocketeer",15, 15},
engineer = { "cis_inf_engineer",15, 15},
sniper = { "cis_inf_sniper",15, 15},
officer = {"cis_inf_officer",9, 9},
special = { "cis_inf_droideka",1, 4},
AddUnitClass(CIS, "cis_inf_marine",60,60)

Also add the line AddUnitClass(***, "***********",**,**) Where the first block of stars= the 3 letter side name (all caps) the second the odf unit name and the 3rd and 4th the min and max number of units

Posted: Sat Apr 28, 2007 8:01 pm
by Caleb1117
Luke wrote:OFF TOPIC: Yooooouuuu buuuummmped!!!

- :vader:
Offtopic: He didn't bump. :? he did double post. :o

Ontopic: Yea humans arent affected by the 2nt number

Posted: Sun Apr 29, 2007 7:37 am
by YankFan1950
that is correct except with the units that cost points ie the droideka, wookiee, magnaguard, commander, jettrooper, bothan, officer, and darktrooper. Then the player is affected by the second number

Posted: Sun Apr 29, 2007 8:15 am
by Dymon
this screen was made in multiplayer, and i want this unit to be only available for a maximum of 2 players! You may realize that the Unit Limit is missing...

Image

that's what the lua says:

SetupTeams{

rep={
team = REP,
units = 29,
reinforcements = 150,
soldier = {"rep_inf_ep3_rifleman",10, 25},
assault = {"rep_inf_ep3_rocketeer",1, 4},
engineer = {"rep_inf_ep3_engineer",1, 4},
sniper = {"rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 2},
special = {"rep_inf_ep3_jettrooper",1, 4},


},

cis={
team = CIS,
units = 29,
reinforcements = 150,
soldier = {"cis_inf_rifleman",10, 25},
assault = {"rep_inf_female",1, 4},
engineer = {"cis_inf_engineer",1, 4},
sniper = {"tra_inf_slaver",1, 4},
officer = {"cis_inf_officer",1, 4},
special = {"cis_inf_droideka",1, 4},
}
}

The limit seems to work for the jettroopers... So I have to add points to unlock for the unit again to let the limit work? is there no way to limit em without needing points? :?

Posted: Sun Apr 29, 2007 6:29 pm
by YankFan1950
yes you need to add points to unlock in order to have a limit also maybe add 1 commander without any points and let the player be the second. ( i have no idea how to limit without setting a point unlock value)