• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Life Drain different Hit Points Drained values for Heroes and units

KPC

KPC

Level 8
Joined
Jun 15, 2018
Messages
231
Hi, I would like to modify the ability Life Drain so that the fields:
1771771012979.png

has different values depending on the target type.

Specifically:
  • one value when the target is a Hero,
  • another value when the target is a non-Hero unit.
What can be done in this situation?
 
Haven't tested but it's probably possible with the reforged ability functions
  • Drain
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Life Drain
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) is A Hero) Equal to True
        • Then - Actions
          • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Life Drain)'s Real Level Field: Hit Points Drained ('Ndr1') of Level: 0 to 100.00
        • Else - Actions
          • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Life Drain)'s Real Level Field: Hit Points Drained ('Ndr1') of Level: 0 to 50.00
Only the "Level: 0" part is finnicky if it's a hero spell, you'd have to take the ability level minus 1
 
Back
Top