- Joined
- Jan 6, 2008
- Messages
- 2,627
Hi, im trying to make my spell, and it lags alot!
-
Spell
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Flame Strike
-
-
Actions
-
Set TempCaster = (Triggering unit)
-
Set TempLoc = (Target point of ability being cast)
-
Set TempGroup = (Units within 200.00 of TempLoc)
-
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
-
Set TempLoc2 = (Position of (Picked unit))
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
-
Set TempFX = (Last created special effect)
-
Special Effect - Destroy TempFX
-
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
-
Custom script: call RemoveLocation(udg_TempLoc2)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup(udg_TempGroup)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-