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

[Spell] Need some help on custom ability

Status
Not open for further replies.
Level 4
Joined
Feb 23, 2022
Messages
29
I wanted to make an ability for an unit that when it dies it comes back with only a few health left like 150, so I based the ability on the ankh of reincarnation ability, I checked dependencies, I unchecked item ability, but when I give it to a unit (footman), it doesnt seem to work. What did I miss?
 

Remixer

Map Reviewer
Level 33
Joined
Feb 19, 2011
Messages
2,112
I think the item version doesn't work as a normal unit ability - perhaps it checks for charges available, and thus it only works on an item? Perhaps you can trigger this behavior instead?
  • Example Trigger
    • Events
      • Unit - A unit About to take damage
    • Conditions
      • (Level of Reincarnation for (Triggering unit)) Equal to 1
      • (Life of (Triggering unit)) Less than or equal to (Damage taken)
    • Actions
      • Unit - Set life of (Triggering unit) to 25.00%
      • Unit - Remove Reincarnation from (Triggering unit)
 
Level 4
Joined
Feb 23, 2022
Messages
29
I think the item version doesn't work as a normal unit ability - perhaps it checks for charges available, and thus it only works on an item? Perhaps you can trigger this behavior instead?
  • Example Trigger
    • Events
      • Unit - A unit About to take damage
    • Conditions
      • (Level of Reincarnation for (Triggering unit)) Equal to 1
      • (Life of (Triggering unit)) Less than or equal to (Damage taken)
    • Actions
      • Unit - Set life of (Triggering unit) to 25.00%
      • Unit - Remove Reincarnation from (Triggering unit)
Hmm, yes that does seems to be the case. I'll try this out, thanks!
 
Status
Not open for further replies.
Top