Multiple Teams per Era Mode

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
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Multiple Teams per Era Mode

Post by Kingpin »

Just a warning this may sound confusing.

So I am making an era mod that adds Hero Assault to stock maps. In some maps, they may be Sith Legends, and others, Jedi vs Sith. My question is, is it possible to set it up so in one map, the two teams are "Jedi" and "Sith", where on another map the teams would be "Sith" and "Mandalorians"?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Multiple Teams per Era Mode

Post by thelegend »

Why not. Where is the problem? Write other names in your luas. Example in cor1g_eli there are siths and jedis. And in other maps there are siths and mandalorians. Or in all maps both different eli modes? So create 2 eras.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Multiple Teams per Era Mode

Post by Kingpin »

I don't want to create a second era, I just want to have eli on one map be Sith and Jedi, and on another map Sith and Mandalorians.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Multiple Teams per Era Mode

Post by thelegend »

Ah ok. Hm...just create eli luas with different readdatafile blocks. One reads the sith and jedi, other the sith and mandalorians.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Multiple Teams per Era Mode

Post by Kingpin »

How would I go around setting that up?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Multiple Teams per Era Mode

Post by thelegend »

On every map you can add a gamemode. In this case we take eli. Copy the tat2_eli.lua and add the modes to your wish maps. In one eli lua for Coruscant write the Jedi and Sith Codes. Im setup teams the same. Now in another eli lua add the mandalorians and villians/ siths.
In your game you should be able to play on 2 different assault modes. They are the same, but with different sides.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Multiple Teams per Era Mode

Post by Kingpin »

So do I want to change this:

Code: Select all

  --  Empire Attacking (attacker is always #1)
LEG = 1;
END = 2;
     --  These variables do not change
ATT = 1;
DEF = 2;
and here:
Hidden/Spoiler:
SetupTeams{
hero = {
team = LEG,
units = 12,
reinforcements = -1,
soldier = { "leg_inf_darth_revan",1,2},
assault = { "all_hero_chewbacca", 1,2},
engineer= { "all_hero_luke_jedi", 1,2},
sniper = { "", 1,2},
officer = { "", 1,2},
special = { "", 1,2},
},
}

AddUnitClass(ALL,"all_hero_leia", 1,2)
AddUnitClass(ALL,"lis_hero_grievous", 1,2)
AddUnitClass(ALL,"",1,2)

SetupTeams{
villain = {
team = END,
units = 12,
reinforcements = -1,
soldier = { "imp_hero_bobafett", 1,2},
assault = { "imp_hero_darthvader",1,2},
engineer= { "leg_inf_darth_malak", 1,2},
sniper = { "cis_hero_jangofett", 1,2},
officer = { "", 1,2},
special = { "imp_hero_emperor", 1,2},

},
}
AddUnitClass(IMP, "leg_inf_darth_plageuis",1,2)
AddUnitClass(IMP, "cis_hero_countdooku",1,2)
Post Reply