• 🏆 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!

[Trigger] 0 Mana

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Time - Every 0.5s
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Playable Map Area) and do If (Picked Unit) current mana equal to 0 then do Unit - Kill (Picked Unit) else do nothing
That's the most easiest thing i can think of..
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
  • ASDF
    • Events
      • Time - Every X Seconds of Game Time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick Every Unit in (<Your units that die at 0 mana) Matching (MAna of (Matching Unit) Equal to 0.00) and do Actions
        • Loop - Actions
          • Unit - Kill (Picked Unit)
EDIT: Damn, this is why opening every window in T&S at once is bad for timing :p
 
Status
Not open for further replies.
Top