I'm still struggling with my era mod and the galactic conquest adaption. I tried a lot of LUA stuff but nothing really worked.
Side Note to the mod: The Era mod doesn't add a new era but it will replace the vanilla clone wars era, so the troops in galactic conquest will be switched, too.
So I was asking myself is the following could work:
My LUA setup for example Coruscant looks like this:
Code: Select all
ReadDataFile("sound\\cor.lvl;cor1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer2",
"rep_inf_ep3_sniper",
"rep_inf_ep3_sniper_special",
"rep_inf_captain_rex",
"rep_inf_commander_appo",
"rep_inf_ep3_jettrooper")
...
SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",7, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer2",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
addon = { "rep_inf_ep3_sniper_special",1, 4},
officer = { "rep_inf_captain_rex",1, 1},
commander = {"rep_inf_commander_appo",1, 1},
special = { "rep_inf_ep3_jettrooper",1, 4},
},
It's like: You have 2 times SetupTeams, but for instant battle the 1st one and for GC the 2nd one.
I was thinking about a check function like this:
If (gamemode=="GC") {
TeamSetup = 1;
//for galactic conquest
}
else {
TeamSetup = 2;
//for instant battle
}
So is there a function to let the game check which gamemode currently is playing?
Would be nice to hear from anybody about it.
Thanks in advance!
-Benoz


