• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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