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

Auto-Cast Lifesteal

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(Your_Spell_ON))
    • Actions
      • Set Boolean[(Player number of (Owner of (Triggering unit)))] = True
  • Untitled Trigger 002
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(Your_Spell_OFF))
    • Actions
      • Set Boolean[(Player number of (Owner of (Triggering unit)))] = False
  • Untitled Trigger 003
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Acid Bomb) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boolean[(Player number of (Owner of (Attacking unit)))] Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Acid Bomb for (Attacking unit)) Equal to 1
            • Then - Actions
              • Unit - Set life of (Triggering unit) to ((Percentage life of (Attacking unit)) + 9.00)%
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Acid Bomb for (Attacking unit)) Equal to 2
                • Then - Actions
                  • Unit - Set life of (Triggering unit) to ((Percentage life of (Attacking unit)) + 14.00)%
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Acid Bomb for (Attacking unit)) Equal to 3
                    • Then - Actions
                      • Unit - Set life of (Triggering unit) to ((Percentage life of (Attacking unit)) + 15.00)%
                    • Else - Actions
        • Else - Actions
The buff is only to allow to game to check as little units as it can so it won't lag.

This will give you the life when your unit STARTS to attack, if you want him to get the life when he hits his target, you need a hit detection system (GUI is not adviced for this !).
 
Status
Not open for further replies.
Top