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

Building defeat

Status
Not open for further replies.
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • ((Triggering unit) is a structure) Equal to True
  • Actions
    • Set Temp_Group = (Units owned by (Owner of (Triggering unit)) matching ((Matching unit) is alive Equal to False) and ((Matching unit) is a structure) Equal to True)
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Number of units in Temp_Group) Equal to 0
      • Then - Actions
        • Player - Defeat (Owner of (Triggering unit)) with the message X
      • Else - Actions
    • Custom script: call DestroyGroup (udg_Temp_Group)
 
Status
Not open for further replies.
Top