• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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