I am trying to make an ability wherein if the targeted unit dies while having the ability buff, a death effect happens.
To make things easier to understand this is what I want to happen:
DISCLAIMER: I dont know much about triggers, and im basically using what basics i learn through trial and error and whatever i read in hiveworkshop. Also, I don't know how to implement a damage detector engine, so that's probably out of the question.
To make things easier to understand this is what I want to happen:
- Hero uses Shadow Strike warden ability on enemy unit
- Enemy unit takes damage and later on dies
- When the enemy unit dies, I want a dummy unit to cast fan of knives on the body of the dying unit.
DISCLAIMER: I dont know much about triggers, and im basically using what basics i learn through trial and error and whatever i read in hiveworkshop. Also, I don't know how to implement a damage detector engine, so that's probably out of the question.
-
Toxic Spikes Effect
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Dying unit) has buff Toxic Spikes ) Equal to True
-
-
Actions
-
Set LocationToxicSpikes = (Position of (Triggering unit))
-
Unit - Create 1 Dummy for (Owner of (Killing unit)) at LocationToxicSpikes facing Default building facing degrees
-
Unit - Add Dummy Toxic Spikes to (Last created unit)
-
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation( udg_LocationToxicSpikes)
-
-