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

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