Page 1 of 1

Multiple Teams per Era Mode

Posted: Sat May 24, 2014 10:04 am
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"?

Re: Multiple Teams per Era Mode

Posted: Sat May 24, 2014 10:26 am
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.

Re: Multiple Teams per Era Mode

Posted: Sat May 24, 2014 11:14 am
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.

Re: Multiple Teams per Era Mode

Posted: Sat May 24, 2014 12:57 pm
by thelegend
Ah ok. Hm...just create eli luas with different readdatafile blocks. One reads the sith and jedi, other the sith and mandalorians.

Re: Multiple Teams per Era Mode

Posted: Sat May 24, 2014 7:53 pm
by Kingpin
How would I go around setting that up?

Re: Multiple Teams per Era Mode

Posted: Sun May 25, 2014 6:38 am
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.

Re: Multiple Teams per Era Mode

Posted: Sun May 25, 2014 1:01 pm
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)