- Joined
- Jan 6, 2008
- Messages
- 2,622
Hi, ive made my first "spell" i think it looks pwnd and could be usefull, but its so simple. So i need some feedback first.
-
Spell
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Volcanic Attack
-
-

Actions
-


-------- - --------
-


-------- Setting Variables --------
-


Set TempCaster = (Triggering unit)
-


Set TempLoc = (Target point of ability being cast)
-


Set TempGroup = (Units within 200.00 of TempLoc)
-


-------- - --------
-


-------- Some Fx --------
-


Special Effect - Create a special effect at TempLoc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
-


Set TempFX = (Last created special effect)
-


Special Effect - Destroy TempFX
-


-------- - --------
-


-------- Unit Group --------
-


Unit Group - Pick every unit in TempGroup and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) belongs to an enemy of (Owner of TempCaster)) Equal to True
-






((Picked unit) is Magic Immune) Not equal to True
-






((Picked unit) has buff Invulnerable) Not equal to True
-
-





Then - Actions
-






-------- - --------
-






-------- FX --------
-






Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\SearingArrow\SearingArrowMissile.mdl
-






Set TempFX = (Last created special effect)
-






Special Effect - Destroy TempFX
-






-------- - --------
-






-------- Edit Damage --------
-






Unit - Cause TempCaster to damage (Picked unit), dealing (Random real number between ((Real((Level of (Ability being cast) for TempCaster))) x 30.00) and ((Real((Level of (Ability being cast) for TempCaster))) x 31.00)) damage of attack type Spells and damage type Normal
-






-------- - --------
-
-





Else - Actions
-
-
-
-


-------- - --------
-


-------- REMOVING LEAKS --------
-


Custom script: call DestroyGroup(udg_TempGroup)
-


Custom script: call RemoveLocation(udg_TempLoc)
-


-------- - --------
-
-





