• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Life Steal Ability

Status
Not open for further replies.
Level 7
Joined
Jun 1, 2006
Messages
375
I am trying to make an ability in which when one unit attacks, all nearby units are healed for 50% of the attacking units attack damage. Is there an aura in the game that already does this or if not, how do I trigger it? Vampiric aura doesn't see to fit the role :p.
 
Level 7
Joined
Jun 1, 2006
Messages
375
I don't think there's any custom ability for that Oo

But it would require a damage detection system and those are best done in jass. However if you want I can do the spell for you in GUI.

That would be extremely helpful! (+rep if you do). I could trigger it but I'm so rusty at gui I need some help rebooting.
 
Level 8
Joined
Aug 4, 2008
Messages
279
the trigger is
A unit is attacked
Attacking unit equal to hero
Set damage = (DamageTaken / 2)
set unitgroup = Pick every unit within 500 range of attacking unit matching unit, matching unit is an allie.
Pick every unit in unitgroup and do:
Set life of picked unit to (life of picked unit + damage)
call destroygroup (udg_unitgroup)
 
Level 16
Joined
Jun 25, 2008
Messages
1,043
the trigger is
A unit is attacked
Attacking unit equal to hero
Set damage = (DamageTaken / 2)
set unitgroup = Pick every unit within 500 range of attacking unit matching unit, matching unit is an allie.
Pick every unit in unitgroup and do:
Set life of picked unit to (life of picked unit + damage)
call destroygroup (udg_unitgroup)

  • A unit is attacked
No.

Because "A unit is attacked" triggers every time a unit starts to attack another unit, if he stops the attack, it wont deal damage but your trigger will still run. Same applies if the attacker misses the attack.

did you even try your trigger?
 
Level 7
Joined
Jun 1, 2006
Messages
375
dansaDisco: wow very nice, I exspecially like the floating texts +repzz!!!

I'm also adding you in credits, tyvm

Edit: Can anyone help me with this trigger also? What's supposed to happen is units with the buff "Righteous Persecution" heal all nearby ally units for 100 hp that are in 900 range of the dying unit. I think it doesnt work because dying units dont have buffs : /.

  • Righteous Persecution 2
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set RPText = True
      • Set RPHealRange = 900.00
      • Set RPPoint = (Position of (Dying unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) has buff Righteous Persecution) Equal to True
        • Then - Actions
          • Set RPGroup = (Units within RPHealRange of RPPoint)
          • Unit Group - Pick every unit in RPGroup and do (Actions)
            • Loop - Actions
              • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RPText Equal to True
                • Then - Actions
                  • Floating Text - Create floating text that reads 100 above (Picked unit) with Z offset 0.00, using font size 9.00, color (10.00%, 100.00%, 10.00%), and 0.00% transparency
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Set the velocity of (Last created floating text) to 128.00 towards 90.00 degrees
                  • Floating Text - Change the fading age of (Last created floating text) to 0.40 seconds
                  • Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
                • Else - Actions
                  • Do nothing
        • Else - Actions
          • Do nothing
 
Last edited:
Status
Not open for further replies.
Top