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

Tribute Critters

Status
Not open for further replies.
Level 10
Joined
May 25, 2021
Messages
376
Hello guys!

I'm making a custom ability from the original "Kaboom!" ability to be a Sacrifice For Healing ability:

  • I changed the integer of Data-Full Damage Amount from 250 to -250 but it does nothing.
  • Targets Allowed is coped from the ability Healing Wave.

Could anyone please help me to understand what did I do wrong and how to make my idea come true?
 

Attachments

  • Tribute Pig Failed.mp4
    4.4 MB
Last edited:
Level 30
Joined
Aug 29, 2012
Messages
1,386
I'm not sure if negative damage numbers can trigger a heal for an ability, can it?

Anyway, that's something you can trigger pretty easily like this

  • Boom
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Friendly Kaboom!
    • Actions
      • Set VariableSet Point_Caster = (Position of (Triggering unit))
      • Set VariableSet UnitGroup = (Units within 250.00 of Point_Caster matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit)).) Equal to True).)
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 250.00)
      • Custom script: call RemoveLocation(udg_Point_Caster)
      • Custom script: call DestroyGroup(udg_UnitGroup)
Add more conditions in the unit group if you need to be more specific about who gets the healing
 
Add more conditions in the unit group if you need to be more specific about who gets the healing
I prefer making the group for all units (without matching condition) and make the if-statement in the loop (for picked unit) to make it easier to add more conditions later, but this should definitely work.

Some abilities can heal with negative damage, but it's a bit inconsistent.
 
Status
Not open for further replies.
Top