Page 1 of 1

All enemies are Jedi?

Posted: Tue Jul 05, 2011 12:31 am
by 711Savior
Hello everyone. I am quite new to modding, and I was wondering, is there any way to disable Jedi for the players team, but ensure the CPU team has at least three Jedi/Sith Heroes? Thanks.

Re: All enemies are Jedi?

Posted: Tue Jul 05, 2011 1:09 am
by nmycon
If you are hex editing, unfortunately the best you can do is replace any unit other than the soldier class, limiting the jedi unit to a maximum of 4 on the battlefield at once.

If you are making a map and can edit the LUA scripts, it's quite easy

When you have your side set up, just change the max unit number:
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_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_hero_macewindu",1, 1},
Now there can only be a max of 1 unit at a time. You can do this with other classes as well. The only downside is that if you were the Republic (in this case), none of the jedi would spawn as the game always leaves one slot open for the player, so it only works for the CPU team.

Re: All enemies are Jedi?

Posted: Tue Jul 05, 2011 1:16 am
by THEWULFMAN
Thats not really what he meant nmycon, he wants it so that only the opposing team has jedi/sith.

This may be possible, it would require a lua script chunk to do this, I will try to make one later, or someone else will beat me to it.

Re: All enemies are Jedi?

Posted: Tue Jul 05, 2011 5:52 am
by DarthD.U.C.K.
an idea form the top of my head:
1. when the player chooses a team, forcespawn the three enemy heroes like pandemic did it with leia and grievous in the campaign. if one dies, respawn him. when the player respawns, check again for the team and if he changed it, remove the heroes and spawn the new enemy heroes.

Re: All enemies are Jedi?

Posted: Wed Jul 06, 2011 12:51 pm
by 711Savior
Thank you all so very much. I'm a rather new map maker, so some of this went in one ear and out the other, but hey, everyone had to start somewhere right? :eek: