Well, I want to create that corpse..Hi,
I've done one variation of your spell, I'll show you the trigger that I've used to make it work.
Ok so the idea here was if there is a dead body nearby the user, the user can generate a corpse and eat it to restore hit points. The user doesn't exactly have to be close up and personal to the the dead body exactly but! There has to be a dead body near the user in I'm just going to estimate a 700 range.
Cannibalize
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(cannibalize))
Actions
Set CannibalizePoint = (Position of (Ordered unit))
Unit - Create a permanent Skeletal Footman corpse for (Owner of (Ordered unit)) at CannibalizePoint facing (Random angle) degrees
Custom script: call RemoveLocation (udg_CannibalizePoint)
So to sum up if there is a dead body in a 700 range of the user, the user can generate a dead body and eat it to restore hit points.
If you have any questions please let me know.
Titanhex said:It creates a green aura that is near-impossible to get rid of no matter how many art and buff animatiosn you remove.
Titanhex said:Then, after those, Add the Ability Cannabalize to him, Issue a No Target Order to "cannabalize" or "Undead Ghoul - Cannabalize" and have a Wait after that checking every 0.5 seconds to see if his Order has become something other than cannabalize. If it is no longer cannabalize, then Remove the Cannalize Ability.
TriggerSleepAction
, is a grossly inaccurate function. Instead, you could use blizzard's in-game feature that automatically tells the game when the ability is not being casted, when the ability actually stops being casted. There is even an event for "Unit stops casting ability" so why would he use a Wait?