• 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.

[Trigger] Why is my trigger not working?

Status
Not open for further replies.
Level 7
Joined
May 28, 2011
Messages
101
I am trying to make it so when all units in a group is killed, "Menag" will say his next line. (The one that starts with "Well Fought"). For now i can make him say his first line and attack the specific point. However, when all units in the group is killed my trigger doesn't register it even though i have picked all units, made them into a group and made a trigger that waits for units in group to be equal to 0.

  • Pick units
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in First Gnoll Group <gen>) and do (Unit Group - Add (Picked unit) to GnollGroup1)

  • Initiation
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Wait until (Attack_Counter Equal to 1), checking every 1.00 seconds
      • Cinematic - Send transmission to (All players) from Dark Wizard (Menag) 0119 <gen> named Menag: Play No sound and display Hope you're ready. .... Modify duration: Set to 4.00 seconds and Wait
      • Unit Group - Order Menag_Group to Attack-Move To (Center of First Attackpoint <gen>)
      • Wait until ((Number of units in GnollGroup1) Equal to 0), checking every 1.00 seconds
      • Cinematic - Send transmission to (All players) from Dark Wizard (Menag) 0119 <gen> named Menag: Play No sound and display Well fought. Prepar.... Modify duration: Set to 4.00 seconds and Wait
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
When a unit dies it will not be removed instantly from the unit group until it disappears completely (decay) so instead of waiting for the unit group to be equal to 0 you could do this :

A unit Dies

Dying unit is in GnollGroup1 Equal to True.

Remove (Triggering unit) from GnollGroup1
If GnollGroup is empty Equal to True then Send transmission....
 
Status
Not open for further replies.
Top