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

Conditionally killing all units

Status
Not open for further replies.
Level 2
Joined
Oct 29, 2007
Messages
17
Basically, I want the trigger to kill all units owned by the player, other than 3 types of units...

  • Kill All units
  • Events
  • Conditions
  • Actions
  • Unit Group - Pick every unit in (Units owned by(TriggeringPlayer)) and do (Actions)
  • Loop - Actions
  • Unit - Remove (Picked unit) from the game
Trying to make this condtional based on the unit picked...Should be simple enough, but having a mental blank =/.
 
Level 2
Joined
Jun 9, 2006
Messages
18
I don't really understand what you want, is this what you mean?

  • Kill All units
  • Events
  • Time - Every 2.00 seconds of game time
  • Conditions
  • Actions
  • Unit Group - Pick every unit in (Units owned by(TriggeringPlayer)) and do (Actions)
  • Loop - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • Custom value of (Picked Unit) Equal to 1 (or whatever condition you want)
    • Then - Actions
    • Unit - Remove (Picked unit) from the game
  • Else - Actions
  • Do Nothing
 
Status
Not open for further replies.
Top