All enemies are Jedi?
Moderator: Moderators
-
711Savior
- Posts: 2
- Joined: Thu Jun 30, 2011 10:54 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
All enemies are Jedi?
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.
-
nmycon
- Private Recruit
- Posts: 20
- Joined: Mon Apr 13, 2009 2:57 pm
- Projects :: Star Wars Movie Mods
- Location: Toronto, ON
Re: All enemies are Jedi?
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:
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:
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.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},
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: All enemies are Jedi?
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.
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.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: All enemies are Jedi?
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.
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.
-
711Savior
- Posts: 2
- Joined: Thu Jun 30, 2011 10:54 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: All enemies are Jedi?
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? 
