Page 1 of 1
How do you make assault a duel?
Posted: Wed May 10, 2006 11:07 am
by richard
I have a question with assault..
I want to make it so that only 2 charas can find eachother. So its a duel.
How do i make it like that? I added quinlan and dooku as the 2 units but all the other units are still there and when i try something to delete them it wont work...Does anyone has a idea how to make it so that only quinlan and dooku are fighting?? It would really help if you have experience with making duel maps. If anyone could help me with this problem plz post it here

RE: How do you make assault a duel?
Posted: Wed May 10, 2006 11:58 am
by Epena
Um.
Did you delete the other units in the LUA? In both places?
When you get down to the setup teams part in the LUA, make it 0, 1 for both Dooku and Vos, and it should work.
That's really all you need to do. (assuming Vos is a side that's working)
RE: How do you make assault a duel?
Posted: Wed May 10, 2006 12:11 pm
by Teancum
If you want to make a class so that only the player can play as it, you need to set the min and max (it's right after the class name) to 0,0.
RE: How do you make assault a duel?
Posted: Thu May 11, 2006 11:17 am
by richard
I made vos and dooku 0,1 already. And teancum so..If i make the rest 0,0 the other classes wont be on the map right??(cause thats what i want only dooku and vos on the field and no other units.)
EDIT: i changed the other units classes count to 0,0 and still all the other units like aayla and the others are still there to select... I dont want that i just want so that you can only select quinlan in the heroes and dooku in the villians...You know how to do that?
RE: How do you make assault a duel?
Posted: Thu May 11, 2006 5:54 pm
by [RDH]Zerted
Remove the heros you don't want from the SetupTeams/AddUnitClass section and the ReadDataFile section. Comment them out, don't delete them. That way, its easy to fix if you commented out the wrong line.
RE: How do you make assault a duel?
Posted: Fri May 12, 2006 9:31 am
by richard
Comment them out?

You mean delete their name?
RE: How do you make assault a duel?
Posted: Fri May 12, 2006 10:14 am
by Teancum
Sort of. Commenting means you can see it when you open the LUA, but the game doesn't notice it's there (it ignores it).
This is an example of commenting:
--SetMemoryPool("EntityFlyer", 15)
The -- tell the game to ignore it.
RE: How do you make assault a duel?
Posted: Fri May 12, 2006 10:17 am
by richard
SO what do i have to change when i want it so that you cant zsee the heroes in the selection screen?
RE: How do you make assault a duel?
Posted: Fri May 12, 2006 11:38 am
by Epena
Note that this is the stock assault. I don't have Vos in here.
ReadDataFile("SIDE\\rep.lvl",
--"rep_hero_yoda",
--"rep_hero_macewindu",
--"rep_hero_anakin",
--"rep_hero_aalya",
--"rep_hero_kiyadimundi",
--"rep_hero_obiwan",
--"rep_hero_plokoon")
ReadDataFile("SIDE\\cis.lvl",
--"cis_hero_grievous",
--"cis_hero_darthmaul",
"cis_hero_countdooku",
--"cis_hero_jangofett")
--[[ Turrets disabled
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_chaingun_roof",
"tur_weap_built_gunturret")
SetMemoryPoolSize("MountedTurret", 15)
--]]
--ReadDataFile("SIDE\\snw.lvl", "snw_inf_wampa")
SetupTeams{
hero = {
team = ALL,
units = 30,
reinforcements = -1,
--soldier = { "all_hero_hansolo_tat",1,3},
--assault = { "all_hero_chewbacca", 1,2},
--engineer= { "all_hero_luke_jedi", 2,3},
--sniper = { "rep_hero_obiwan", 2,3},
--officer = { "rep_hero_yoda", 2,3},
--special = { "rep_hero_macewindu", 2,3},
},
}
--AddUnitClass(ALL,"all_hero_leia", 1,2)
--AddUnitClass(ALL,"rep_hero_aalya", 2,3)
--AddUnitClass(ALL,"rep_hero_kiyadimundi",2,3)
--AddUnitClass(ALL,"rep_hero_plokoon",2,3)
SetupTeams{
villain = {
team = IMP,
units = 30,
reinforcements = -1,
--soldier = { "imp_hero_bobafett", 2,3},
--assault = { "imp_hero_darthvader",2,3},
--engineer= { "cis_hero_darthmaul", 2,3},
--sniper = { "cis_hero_jangofett", 2,3},
--officer = { "cis_hero_grievous", 2,3},
--special = { "imp_hero_emperor", 2,3},
},
}
--AddUnitClass(IMP, "rep_hero_anakin",2,3)
AddUnitClass(IMP, "cis_hero_countdooku",2,3)
Why don't you just hex edit it?
Posted: Fri May 12, 2006 12:35 pm
by busterkinkade
Why don't you just hex edit it? Then, you can hex edit out the units and leave just the heros, then, set the instant action/multiplayer host options so that the hero respawn time is 0, and that you require no points to get it. The only problem is that if you were doing a campaign game like Rise of the Empire then, well, you would have problems (because you wouldn't be able to set the options)
RE: Why don
Posted: Fri May 12, 2006 12:49 pm
by Teancum
Hex editing is only useful in compiled maps. Why do it in a project like this when you can fix the source itself?
RE: Why don
Posted: Fri May 12, 2006 3:37 pm
by richard
So i need to make -- for their names?
RE: Why don
Posted: Fri May 12, 2006 4:39 pm
by Teancum
Put it in front of it, like Epena showed. Any line with a -- at the beggining will be ignored.
RE: Why don
Posted: Fri May 12, 2006 11:07 pm
by Epena
Don't do it to Dooku or Vos, though. Like Tean said, it'll be ignored byt he game and then you won't have any units.
Just thought I should mention that.

RE: Why don
Posted: Sat May 13, 2006 2:49 am
by richard
I'm not that stupid

But im going to test it now.
EDIT: It didnt work. I munged it and after it i munged everything and the others are still there. What is it that i'm doing wrong? Anyone has a idea?
RE: Why don
Posted: Sat May 13, 2006 1:54 pm
by Teancum
Just delete the lines you don't need then.
RE: Why don
Posted: Sat May 13, 2006 2:08 pm
by richard
Delete a whole line like this line: "all_hero_leia" and this line: all_hero_hansolo_tat ??
Or delete a piece of it or something? Can you maybe show what part to delete?
RE: Why don
Posted: Sun May 14, 2006 2:53 am
by richard
Ok first of all srry for this if you think its double post. But:
Theres no chara on the field except quinlan and dooku, thats good BUT all the others are still in the selection screen. How can i get them of the selection screen?
RE: Why don
Posted: Mon May 15, 2006 2:43 am
by richard
YES!!! Its finnaly worked i just did something wrong with the -- in front of their names. Tnx you 2!!!