- Joined
- May 18, 2013
- Messages
- 125
I'm tying to create a ability based off taunt that causes the closest enemies are forced to attack this hero. While active it causes all nearby friendly units and the hero to be healed for 10/20/30 hit points every time the hero is attacked. Lasts 7 seconds.
I have two spells; the hero spell based on taunt and the dummy ability based off howl of terror which grants the hero the buff.
My problem I'm having is combing the parts of the spell. If I have the hero use dummy ability itself the healing effect works fine. However when I use the taunt first and and try to give the Hero the buff through the dummy ability, the Hero dose not revive the buff that causes the healing effect
Taunt Spell
Dummy Spell
Taunt Trigger
I have two spells; the hero spell based on taunt and the dummy ability based off howl of terror which grants the hero the buff.
My problem I'm having is combing the parts of the spell. If I have the hero use dummy ability itself the healing effect works fine. However when I use the taunt first and and try to give the Hero the buff through the dummy ability, the Hero dose not revive the buff that causes the healing effect
Taunt Spell
Dummy Spell
Taunt Trigger
-
Apotheosis Cast
-
Events
-
Unit - A unit Is issued an order with no target
-
-
Conditions
-
((Issued order) Equal to (Order(Taunt))) and ((Ability being cast) Equal to Apotheosis (Taunt Version) )
-
-
Actions
-
Set VariableSet Apotheosis_Caster = (Ordered unit)
-
Set VariableSet Apotheosis_Dummy_Ability = Apotheosis (Taunt Version) (Dummy)
-
Set VariableSet Apotheosis_Point2 = (Position of Apotheosis_Caster)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Wait 0.33 seconds
-
Unit - Create 1 Dummy for (Owner of Apotheosis_Caster) at Apotheosis_Point2 facing Default building facing degrees
-
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-
Unit - Add Apotheosis_Dummy_Ability to (Last created unit)
-
Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror.
-
-
Else - Actions
-
Custom script: call RemoveLocation(udg_Apotheosis_Point2)
-
-
-
-
-
Apotheosis Effect
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacked unit) has buff Apotheosis ) Equal to True
-
-
Actions
-
Set VariableSet Apotheosis_Attacked = (Attacked unit)
-
Set VariableSet Apotheosis_Point = (Position of Apotheosis_Attacked)
-
Set VariableSet Apotheosis_Group = (Units within 500.00 of Apotheosis_Point matching (((Matching unit) belongs to an ally of (Owner of Apotheosis_Attacked).) Equal to True).)
-
Unit Group - Pick every unit in Apotheosis_Group and do (Actions)
-
Loop - Actions
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (10.00 x (Real((Level of Apotheosis (Taunt Version) for Apotheosis_Attacked)))))
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\VampiricAura\VampiricAuraTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
-
Custom script: call DestroyGroup(udg_Apotheosis_Group)
-
Custom script: call RemoveLocation(udg_Apotheosis_Point)
-
-
Last edited by a moderator: