K
Kitt
Guest
I'm trying to make it so that if a certain unit casts a custom ability on a custom structure it will summon a dragon, then kill that unit.
i was having some problem with getting it to summon the dragon, but i ran some tests and found all of these lines to work perfectly:
Events
--- Unit - A unit finishes casting an ability
Conditions
--- (Ability Being cast) Equal to Summon Dragon
--- (Unit-type of (Triggering Unit)) Equal to Dragon Summoner
Actions
--- Unit - Create 1 Red Drake for (Triggering Player) at (position of (Triggering unit)) facing Default building facing degrees
--- Unit - Kill (Triggering Unit)
Summon Dragon is a dummy ability i created that does nothing but make an animation and have a delay. Dragon Summoner is just a unit that has the Summon dragon ability. If i leave the trigger as is, i can use the ability on a target and when it finishes a Red Drake is summoned and the Summoner is killed. I've tested it and this works. However i want it to ONLY work when the ability is cast on a certain custom building; However, if i add this line in under conditions, the spell ceases to do any of the actions:
Conditions
--- <above conditions>
--- (Unit type of (Target unit of ability being cast)) Equal to Dragon Portal
Dragon portal is the custom building i want the spell to work on only if it's the target. I'm not sure whats wrong... everything look peachy keen to me, but it refuses to work once i add that line in.
Anyone have any suggestion? Any questions?
Thanks in advance to anyone that offers some advice.
Meow.
i was having some problem with getting it to summon the dragon, but i ran some tests and found all of these lines to work perfectly:
Events
--- Unit - A unit finishes casting an ability
Conditions
--- (Ability Being cast) Equal to Summon Dragon
--- (Unit-type of (Triggering Unit)) Equal to Dragon Summoner
Actions
--- Unit - Create 1 Red Drake for (Triggering Player) at (position of (Triggering unit)) facing Default building facing degrees
--- Unit - Kill (Triggering Unit)
Summon Dragon is a dummy ability i created that does nothing but make an animation and have a delay. Dragon Summoner is just a unit that has the Summon dragon ability. If i leave the trigger as is, i can use the ability on a target and when it finishes a Red Drake is summoned and the Summoner is killed. I've tested it and this works. However i want it to ONLY work when the ability is cast on a certain custom building; However, if i add this line in under conditions, the spell ceases to do any of the actions:
Conditions
--- <above conditions>
--- (Unit type of (Target unit of ability being cast)) Equal to Dragon Portal
Dragon portal is the custom building i want the spell to work on only if it's the target. I'm not sure whats wrong... everything look peachy keen to me, but it refuses to work once i add that line in.
Anyone have any suggestion? Any questions?
Thanks in advance to anyone that offers some advice.
Meow.


