Adding more troops [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
adrenalinshake

Adding more troops [Solved]

Post by adrenalinshake »

I'm kinda new mith modding , and i have a working new map.
How do I double the number of the troops on the map?
Rekubot
Jedi
Jedi
Posts: 1080
Joined: Wed Apr 05, 2006 12:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: Shadow Complex
xbox live or psn: Rekubot
Location: UK

RE: Adding more troops

Post by Rekubot »

Under Instant Action, go to Global, and then increase the amount of AI units per team. If you mean via the LUA, use the search function.
adrenalinshake

RE: Adding more troops

Post by adrenalinshake »

I meant the LUA.
XXXNewbie666XXX

RE: Adding more troops

Post by XXXNewbie666XXX »

Increase the number of troops or the reinforcements????

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 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, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

In the reinforcement change the number to 200, 800, 1000 etc.....
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

RE: Adding more troops

Post by Darth_Z13 »

Or change the units to wahtever you want it to be.
adrenalinshake

RE: Adding more troops

Post by adrenalinshake »

Sorry i wasn't clear enough.
I meant the numberof Units on field.
You know like if i'd like to have 100 droids and 100 clones on the map at once.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Adding more troops

Post by [RDH]Zerted »

search around for Uber mode.

Someone really needs to add Uber mode to the modding Wiki. I would, but I've never used Uber mode.
XXXNewbie666XXX

RE: Adding more troops

Post by XXXNewbie666XXX »

i thing that you may change this number:

SetupTeams{
rep = {
team = REP,
units = 100,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 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, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

i don't know if will work, but try it
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

How to increase the number of units on the battlefield

Post by AceMastermind »

How to increase the number of units on the battlefield:
Example:

Code: Select all

cis = {
team = CIS,
units = 100, <=== change to something like 100 (max units per side is 400)
reinforcements = 250,
soldier = { "cis_inf_rifleman",9, 25}, <==== the last numbers on 
assault = { "cis_inf_rocketeer",1, 25},<==== these lines are 
engineer = { "cis_inf_engineer",1, 20}, <==== the max number 
sniper = { "cis_inf_sniper",1, 20}, <==== of units for that type 
officer = {"cis_inf_officer",1, 5}, <===== and should add up to (Units = #)
special = { "cis_inf_droideka",1, 5}, <=== 25+25+20+20+5+5=100
You'll also need to add another little bit of code for it to work. (ABC = example modID)
add this line in your ABCc or g_con.lua above EnableSPHeroRules():

Code: Select all

SetUberMode(1);
So it looks like this (without the arrow) :

Code: Select all

conquest:Start()
SetUberMode(1); <============================
EnableSPHeroRules()

end
Then save(close) and munge, go play!
adrenalinshake

Post by adrenalinshake »

Thanx AceMastermind I'll try that.
Post Reply