• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Why isn't this trigger working

Status
Not open for further replies.
Level 3
Joined
Feb 12, 2005
Messages
22
Event-
Unit owned by player 1 (red) dies
Unit owned by player 2 (blue) dies
Unit owned by player 3 (teal) dies
Unit owned by player 4 (purple) dies

Condition-
number of units in Team1PeopleAlive equal to 0

Event-
Pick every unit in Duel <gen> and to (actions)
Loop - Actions
Pause Picked Unit
Create a special efect (dark conversion) on overhead of unit
wair 2 seconds
Create a special efect (Mass Teleport) on overhead of unit
wait 2 seconds
unpause picked unit
move picked unit to Left Side <gen>
 
Level 3
Joined
Feb 12, 2005
Messages
22
maby i wasn't clear enough... this is a duel with everyone involved. the trigger is basicly saying when one team dies do the actions for the other team if you can see now...
 
Level 7
Joined
Jul 30, 2004
Messages
451
yeah, but what Dark was saying is that even though a unit dies, it still belongs to the unit group

so assuming (Team1PeopleAlive) contains all units from P1/2/3/4 this trigger won't actually fire under whats going on

essentially this only occurs when a unit dies, but a unit will always still be in the unit group when it dies (maybe exploding them is different, but thats besides the point)

anyways you may want to remove the dying unit from the group and then do a check in an if block
 
Status
Not open for further replies.
Top