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

Making unit die when they have 0 mana

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
Sorry for making new thread but i want more people to see it, i asked u guys before how to make unit dies when it has 0 mana.
Mana
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      timer.gif
      Time - Every 0.03 seconds of game time
  • join.gif
    cond.gif
    Conditions
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      page.gif
      Custom script: set bj_wantDestroyGroup = true
    • empty.gif
      joinbottomminus.gif
      unitgroup.gif
      Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Air Plane)) and do (Actions)
      • empty.gif
        empty.gif
        joinbottomminus.gif
        actions.gif
        Loop - Actions
        • empty.gif
          empty.gif
          empty.gif
          joinbottomminus.gif
          if.gif
          If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinminus.gif
            cond.gif
            If - Conditions
            • empty.gif
              empty.gif
              empty.gif
              empty.gif
              line.gif
              join.gif
              if.gif
              ((Picked unit) is alive) Equal to True
            • empty.gif
              empty.gif
              empty.gif
              empty.gif
              line.gif
              joinbottom.gif
              if.gif
              (Mana of (Picked unit)) Less than 0.01
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinminus.gif
            actions.gif
            Then - Actions
            • empty.gif
              empty.gif
              empty.gif
              empty.gif
              line.gif
              joinbottom.gif
              unit.gif
              Unit - Kill (Picked unit)
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinbottom.gif
            actions.gif
            Else - Actions
          • i used this tiger given by you to me the problem is that i have 10 different kinds of units and when i put 10 units to that tigger game has very big lags due to it. is there any other way to put 10 units to make it less laggy? or maybe i can create spell which makes units dying when they have 0 mana? but i have no idea if its possible or how to do it
 
Status
Not open for further replies.
Top