Crossing Eras

Started by Snake, March 07, 2013, 02:53:55 PM

Previous topic - Next topic
Is it possible, if a map has REP, IMP, and ALL in the same side file, to cross Alliance so that it fights both the Imps and the Republic, depending on what era the person chooses to play by editing it in the .lua?
=AaTc= Forever

SALLY....

-Retired Modder

March 07, 2013, 03:00:13 PM #1 Last Edit: March 07, 2013, 03:02:52 PM by -RepublicCommando-
Couldn't you just tell the mission lua of the specific map to read all 4 sides, then fill in the units with the troops you want?
I don't understand why you would need a...I guess 'merged' side.lvl to accomplish it, that sounds like too much effort.

    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
"rep_inf_macewindu",
        "rep_inf_jet_trooper");

    ReadDataFile("SIDE\\cis.lvl",
        "cis_inf_basic",
"cis_inf_countdooku",
        "cis_inf_droideka");
----------------------------------------
    ReadDataFile("SIDE\\all.lvl",
        "all_inf_basicdesert",
"all_inf_lukeskywalker",
        "all_inf_smuggler");

    ReadDataFile("SIDE\\imp.lvl",
        "imp_inf_basic_tie",
"imp_inf_darthvader",
        "imp_inf_dark_trooper");

You could add that to the LUA, then replace the spawning units with what ever trooper from what ever class you wanted, and without munging new combined sides.


repcom is right , you don't need to change any side LVLs if all you want to do is add units from both eras just make the appropriate changes to mission lua

Alright, thats what I was hoping but I wasn't quite sure. Thanks!
=AaTc= Forever

SALLY....

-Retired Modder