HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dang please help

10-06-2003, 03:26 AM#1
Mordrag
Can someone tell me how i can make a trigger so I need to kill 7 units and after all 7 of them are killed a door becomes open and the boss appears? Please
10-06-2003, 04:27 AM#2
Mordrag
<bump>
10-06-2003, 04:38 AM#3
Dragon
c 0 <unit> in <area>

a Open door
10-06-2003, 04:38 AM#4
Mordrag
huh?
10-06-2003, 04:41 AM#5
Draco
Well, you could assign a unit variable to each one and then use a periodic event and a condition (or if/then/else) to check if they are all dead.

If you don't want that, you could have an integer value and set it to (value+1) each time you kill a specific unit or unit-type and then when it is equal to 7, open the door.

There are lots of ways to do it.
10-06-2003, 04:42 AM#6
Dragon
Conditions: Amount of <Whatever Unit you want> in <Whatever Region you want> equal to 0.

Actions: Open <Whatever door you want>

All things inside the <>s mean you can replace that with whatever you need.
10-06-2003, 04:43 AM#7
Mordrag
*sigh* draco does understand what I mean?
10-06-2003, 04:45 AM#8
Mordrag
Man..I dont even undertand arrays and variables and stuff.
10-06-2003, 05:01 AM#9
dataangel
Quote:
Originally posted by ThePersonThing
Conditions: Amount of <Whatever Unit you want> in <Whatever Region you want> equal to 0.

Actions: Open <Whatever door you want>

All things inside the <>s mean you can replace that with whatever you need.


That won't work because dead units still count.
10-06-2003, 05:02 AM#10
dataangel
Quote:
Originally posted by Mordrag
Man..I dont even undertand arrays and variables and stuff.


Make a trigger:

Event
A Unit Dies
Conditions
Guy number 1 is dead
Guy number 2 is dead
Guy number 3 is dead
Guy number 4 is dead
Guy number 5 is dead
Guy number 6 is dead
Guy number 7 is dead
Actions
Destructible - Open Door
Unit Create 1 (of your boss)
10-06-2003, 05:03 AM#11
Mordrag
THANK YOU!:mtk: :foot: :D
10-06-2003, 07:35 AM#12
35263526
That trigger will not work. It will trigger whenever any of the units are killed. Go with draco's method. And it doesn't help either us or you if you can't be bothered to try to understand variables.
10-06-2003, 07:59 AM#13
Talila
add a turn off this trigger to the begining of dataa's trigger and no problems

~Talila
10-06-2003, 08:06 AM#14
Beam
Quote:
That trigger will not work. It will trigger whenever any of the units are killed. Go with draco's method. And it doesn't help either us or you if you can't be bothered to try to understand variables.
Unless there were only one of each of those units. If it were say a footman then it wouldnt work.
10-06-2003, 10:28 AM#15
Freak
Or you make those 7 units variabeles. Just select them via the 'Select Unit' thingy.