HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question, i got 3 bosses and i want the trigger to run after they are all dead

02-02-2003, 09:43 AM#1
ripmage
I have 3 bosses in a small enclosed area and i want to know how to make the trigger work when ALL 3 of the bosses are dead. Thanx:D
02-02-2003, 12:29 PM#2
Guest
hmm
u could make an integer variable "bossdead"
event: bossX dies
action: set bossdead to bossdead + 1

2.trigger would be
bossdead = 1
run triggerX

or a trigger like unit of computer dies
and 3 conditions if the bosses are still alive

i think other people will post easier triggers
02-02-2003, 01:57 PM#3
DaKaN
bloodlust summed it up pretty well, but the actualy code will look like this:

Action
A Unit owned by player (owner of the boss) dies

Conditions
(if the 3 bosses are different unit types, use 3 OR statmenets)
Unit Type (Type of Dying unit) is = to (Pick the unit boss is)
OR
Unit Type (Type of Dying unit) is = to (Pick the unit boss is)
OR
Unit Type (Type of Dying unit) is = to (Pick the unit boss is)

Actions
Set BossCounter(interger varible) = Arithmatic (BossCounter + 1)
Trigger run - Check Boss Dead (checking conditions)


Trigger- Check Boss Dead
Actions
None

Conditions
Interger Comparison (If BossCounter >= to 3)

Actions
Whatever you need here