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

[Trigger] Aura of Lifestealing

Status
Not open for further replies.
Level 2
Joined
Sep 17, 2007
Messages
12
Im Fairly sure you can make Unholy Aura drain Life instead of Add it, and then you can set it to effect only enemies.

Then you could trigger something along the lines of.
  • Aura of LifeStealing
  • Events
  • Time - Every 5 Seconds of Game time
  • Conditions
  • Boolean - ((Your Unit) is alive Equal to True)
  • Actions
  • Set Point = Positon of (Your Unit)
  • Set UnitGroup = Units within 900 of Point[1] matching (((Matching Unit) has buff "Your Buff) Equal to True)))
  • Unit - Set (Life of (Your Unit) to ((Life of (Your Unit) + ((Number of Units in(UnitGroup)) *5))
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Here's the solution, then;

  • Aura of LifeStealing
    • Events
      • Time - Every 5 Seconds of Game time
    • Conditions
      • ((Your Unit) is alive Equal to True)
    • Actions
      • Set Point = Positon of (Your Unit)
      • Set UnitGroup = Units within 900 of Point matching (((Matching Unit) has buff Your Buff) Equal to True)))
      • Unit - Set Life of (Your Unit) to ((Life of (Your Unit)) + ((Number of Units in(UnitGroup)) * 5))
      • Custom script: call DestroyGroup(udg_UnitGroup)
      • Custom script: call RemoveLocation(udg_Point)
 
Status
Not open for further replies.
Top