Page 1 of 1

Some usefull scripts

Posted: Sun Nov 04, 2007 2:07 pm
by Death_Commando
Well here are some useful scripts. I got the idea when i was playing the Kamino Campaign[Stormtroopers vs Clone Troopers]

CIS vs Galactic Empire:
Hidden/Spoiler:
[code] ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_inf_officer")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 12,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},

},
cis = {
team = CIS,
units = 12,
reinforcements = 150,
soldier = { "imp_inf_rifleman",1,50},
assault = { "imp_inf_rocketeer",1,50},
engineer = { "imp_inf_engineer",1,50},
sniper = { "imp_inf_sniper",1,50},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "imp_hero_bobafett")[/code]
Galactic Republic vs Rebels
Hidden/Spoiler:
[code] ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman_urban",
"all_inf_rocketeer_fleet",
"all_inf_sniper_fleet",
"all_inf_engineer_fleet",
"all_hero_hansolo_tat",
"all_inf_wookiee",
"all_inf_officer")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

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},

},
cis = {
team = CIS,
units = 32,
reinforcements = 150,
soldier = { "all_inf_rifleman_urban",9, 25},
assault = { "all_inf_rocketeer_fleet",1, 4},
engineer = { "all_inf_engineer_fleet",1, 4},
sniper = { "all_inf_sniper_fleet",1, 4},
officer = { "all_inf_officer",1, 4},
special = { "all_inf_wookiee",1,4},
},

}

SetHeroClass(CIS, "all_hero_hansolo_tat")
SetHeroClass(REP, "rep_hero_anakin")[/code]
Galactic Republic vs Galactic Empire:
Hidden/Spoiler:
[code] ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_inf_officer")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

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},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",1,50},
assault = { "imp_inf_rocketeer",1,50},
engineer = { "imp_inf_engineer",1,50},
sniper = { "imp_inf_sniper",1,50},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
}
}

SetHeroClass(CIS, "imp_hero_bobafett")
SetHeroClass(REP, "rep_hero_anakin")[/code]
CIS vs Rebels
Hidden/Spoiler:
[code] ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman_urban",
"all_inf_rocketeer_fleet",
"all_inf_sniper_fleet",
"all_inf_engineer_fleet",
"all_hero_hansolo_tat",
"all_inf_wookiee",
"all_inf_officer")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},

},
cis = {
team = CIS,
units = 32,
reinforcements = 150,
soldier = { "all_inf_rifleman_urban",9, 25},
assault = { "all_inf_rocketeer_fleet",1, 4},
engineer = { "all_inf_engineer_fleet",1, 4},
sniper = { "all_inf_sniper_fleet",1, 4},
officer = { "all_inf_officer",1, 4},
special = { "all_inf_wookiee",1,4},
}
}

SetHeroClass(CIS, "all_hero_hansolo_tat")
SetHeroClass(REP, "cis_hero_darthmaul")[/code]
EDIT:Bugs:When you're playing republic vs empire and you're in the empire team and your team captures a cp that droid voice apears

EDIT2:If you use them please give me credit

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 2:30 pm
by Caleb1117
Whats this?
:?

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 2:49 pm
by MasterSkywalker
It's his script showing how he pulled off cross era battles :)

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 2:51 pm
by Death_Commando
Thanks MasterSkywalker for explaning.And that is correct

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 3:17 pm
by Xavious
What's the point of this? It's as simple as copy-pasting a couple lines of code. I mean, a monkey could do it.

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 3:30 pm
by Death_Commando
I just thought that it would be usefull to some new modders that are not familiar with lua

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 3:36 pm
by Thunder
true
but on the other hand
like if someone does that for their map without takeing your credit
...
you get it?

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 3:47 pm
by Death_Commando
Yeah i get it

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 4:19 pm
by Maveritchell
Appreciate the attempt to be helpful, but how to do this is covered in the documentation.

Btw, your "bugs" aren't bugs, they're just that way because you only spent 15 seconds setting these .lua segments up. All you do is change:

Code: Select all

    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)
    
    SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1)
    SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1) 
to

Code: Select all

    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
    SetBleedingVoiceOver(REP, IMP, "rep_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(IMP, REP, "imp_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(IMP, IMP, "imp_off_com_report_us_overwhelmed", 1)
    
    SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(REP, IMP, "rep_off_victory_im", .1, 1)
    SetLowReinforcementsVoiceOver(IMP, IMP, "imp_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(IMP, REP, "imp_off_victory_im", .1, 1) 
There's no problem with you posting something like that; I would certainly just hope that you're not expecting credit for it, since this is, at best, a really, really basic tutorial.

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 4:27 pm
by Death_Commando
I know the thing about the sounds but i was too lasy to do it.I dont expect credit i just wanted to help the beginners

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 4:33 pm
by Thunder
Death_Commando wrote:
EDIT2:If you use them please give me credit

Re: Some usefull scripts

Posted: Sun Nov 04, 2007 11:19 pm
by trainmaster611
Thunder wrote:
Death_Commando wrote:
EDIT2:If you use them please give me credit
QFT

All you did was delete one side and copy and paste a few lines. I guess its not a big deal but it would be easy to figure out. Most people (even newbies) would be able to do that upon opening the file. Its really kind of an understood thing.

There's no harm. It just wasn't necessary.

Re: Some usefull scripts

Posted: Fri Dec 21, 2007 3:26 am
by theITfactor
You shouldn't be demanding credit for something this simple :roll: