- Joined
- Jan 6, 2008
- Messages
- 2,627
Hi, ive started making spells and im creating my spell "Call of the Angel" it works perfect, but i dont know how to heal him over time, paralyze the units 4 seconds.
my code so far
Now, the problem is that they "Anti-Heal" him
my code so far
-
Call of the Angel
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Call of the Angel
-
-
Actions
-
-------- - --------
-
-------- Variables --------
-
Set TempCaster = (Triggering unit)
-
Set TempLoc = (Position of TempCaster)
-
Set TempGroup = (Units within 300.00 of TempLoc)
-
-------- - --------
-
-------- Fx --------
-
Special Effect - Create a special effect attached to the origin of TempCaster using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
-
Set TempFX = (Last created special effect)
-
Special Effect - Destroy TempFX
-
-------- - --------
-
-------- Healing Spell --------
-
Unit - Create 1 Dummy for (Owner of TempCaster) at TempLoc facing Default building facing degrees
-
Set Dummy = (Last created unit)
-
Unit - Add a 2.00 second Generic expiration timer to Dummy
-
-------- - --------
-
-------- Paralyze --------
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
-------- - --------
-
-------- FX --------
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Polymorph\PolyMorphTarget.mdl
-
Set TempFX = (Last created special effect)
-
Special Effect - Destroy TempFX
-
-------- - --------
-
-
-
-------- - --------
-
-------- REMOVING LEAKS --------
-
Custom script: call DestroyGroup(udg_TempGroup)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- - --------
-
-