simple question - unit limit
Moderator: Moderators
-
Dymon
- Lance Corporal
- Posts: 90
- Joined: Thu Jan 18, 2007 7:24 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
simple question - unit limit
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
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
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
I don't fully understand what your asking, but just about everything about numbers, limits, and reinforcements are in the lua
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.
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 "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.
-
Dymon
- Lance Corporal
- Posts: 90
- Joined: Thu Jan 18, 2007 7:24 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
Dymon
- Lance Corporal
- Posts: 90
- Joined: Thu Jan 18, 2007 7:24 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
-
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
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
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
-
YankFan1950
-
Dymon
- Lance Corporal
- Posts: 90
- Joined: Thu Jan 18, 2007 7:24 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
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...

that's what the lua says:
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?
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?
-
YankFan1950
