Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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)
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.
OM NOM NOM

Events


Unit - A unit Begins channeling an ability

Conditions


(Ability being cast) Equal to Cannibalize Dummy

Actions


Unit - Create a Town Guard corpse for (Owner of (Triggering unit)) at (Position of (Triggering unit))


Unit - Create a Town Guard corpse for (Owner of (Triggering unit)) at (Position of (Triggering unit))


Unit - Add Cannibalize to (Triggering unit)


Unit - Order (Triggering unit) to Undead Ghoul - Cannibalize


Wait until ((Issued order) Not equal to (Order(cannibalize))), checking every 0.50 seconds


Unit - Remove Cannibalize from (Triggering unit)
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?
