- Joined
- Jun 25, 2009
- Messages
- 427
Hey guys, i'm back from my village for few days, so yeah, i have one spell which i downloaded somewhere and it lags, it's very unadvanced and piece of s**t cause it uses waits, and etc. I need help how to get it to work the same as it does (around the caster flames go down and knockbacks all units they touch) the triggers:
The loop trigga
Okay, the next spell is: I fly ~2k range picking nearby units, dealing damage, but after some casts it begins to lag. Need some help!!! 
The trigger
People who will help me fix this crap will get +rep (or even 2
)
Tiche3
-
DD Cast
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Fire Blast
-
-

Actions
-


Set DD_Caster = (Triggering unit)
-


Set DD_Location = (Position of DD_Caster)
-


Set DD_Number = 0.00
-


Wait 0.10 seconds
-


For each (Integer A) from 1 to 18, do (Actions)
-



Loop - Actions
-




Unit - Create 1 D'sD_Dummy for (Owner of DD_Caster) at DD_Location facing DD_Number degrees
-




Set DD_Number = (DD_Number + 20.00)
-




Set DD_Dummies[(Integer A)] = (Last created unit)
-




Unit - Add a 1.20 second Generic expiration timer to (Last created unit)
-




Animation - Change (Last created unit) flying height to 10.00 at 750.00
-
-
-


Wait 0.10 seconds
-


Set DD_Number = 0.00
-


For each (Integer A) from 1 to 18, do (Actions)
-



Loop - Actions
-




Set DD_Location_Off = (DD_Location offset by 500.00 towards DD_Number degrees)
-




Unit - Order DD_Dummies[(Integer A)] to Move To DD_Location_Off
-




Set DD_Number = (DD_Number + 20.00)
-




Custom script: call RemoveLocation(udg_DD_Location_Off)
-
-
-


Wait 0.20 seconds
-


Set DD_Number = 250.00
-


Custom script: call RemoveLocation(udg_DD_Location)
-


Trigger - Turn on DD Effect <gen>
-


Wait 1.00 seconds
-


Trigger - Turn off DD Effect <gen>
-
-
-
DD Effect
-

Events
-


Time - Every 0.02 seconds of game time
-
-

Conditions
-

Actions
-


Set DD_Location = (Position of DD_Caster)
-


Set DD_Group = (Units within DD_Number of DD_Location matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of DD_Caster)) Equal to True) and (((Matching unit) is Magi
-


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



Loop - Actions
-




Set DD_Location_Off = (Position of (Picked unit))
-




Set DD_Location_Off_2 = (DD_Location_Off offset by 6.00 towards (Angle from DD_Location to DD_Location_Off) degrees)
-




Unit - Move (Picked unit) instantly to DD_Location_Off_2
-




Unit - Cause DD_Caster to damage (Picked unit), dealing (1.50 x (Real((Level of Fire Blast for DD_Caster)))) damage of attack type Spells and damage type Magic
-




Special Effect - Create a special effect at DD_Location_Off using Abilities\Weapons\LordofFlameMissile\LordofFlameMissile.mdl
-




Set DD_Effect = (Last created special effect)
-




Special Effect - Destroy DD_Effect
-




Custom script: call RemoveLocation(udg_DD_Location_Off)
-




Custom script: call RemoveLocation(udg_DD_Location_Off_2)
-
-
-


Custom script: call RemoveLocation(udg_DD_Location)
-


Custom script: call DestroyGroup(udg_DD_Group)
-


Set DD_Number = (DD_Number + 12.50)
-
-
The trigger
-
Shifting Battlephase Cast
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Shifting Battlephase
-
-

Actions
-


Set Shifting_Battlephase_Unit = (Triggering unit)
-


Unit - Turn collision for Shifting_Battlephase_Unit Off
-


Trigger - Turn on Shifting Battlephase Loop <gen>
-
-
-
Shifting Battlephase Loop
-

Events
-


Time - Every 0.04 seconds of game time
-
-

Conditions
-

Actions
-


Set Shifting_Battlephase_Point = (Position of Shifting_Battlephase_Unit)
-


Set Shifting_Battlephase_Point_Off = (Shifting_Battlephase_Point offset by 100.00 towards (Facing of Shifting_Battlephase_Unit) degrees)
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






(Terrain pathing at Shifting_Battlephase_Point_Off of type Flyability is off) Equal to True
-






Shifting_Battlephase_Distance Equal to 0.00
-
-
-
-



Then - Actions
-




Custom script: call RemoveLocation(udg_Shifting_Battlephase_Point_Off)
-




Custom script: call RemoveLocation(udg_Shifting_Battlephase_Point)
-




Unit - Turn collision for Shifting_Battlephase_Unit On
-




Set Shifting_Battlephase_Distance = 800.00
-




Trigger - Turn off (This trigger)
-




Skip remaining actions
-
-



Else - Actions
-




Set Shifting_Battlephase_Off_2 = (Shifting_Battlephase_Point offset by 160.00 towards (Facing of Shifting_Battlephase_Unit) degrees)
-




Unit - Move Shifting_Battlephase_Unit instantly to Shifting_Battlephase_Point_Off
-




Set Shifting_Battlephase_Group = (Units within 300.00 of Shifting_Battlephase_Point_Off matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) Not equal to Shifting_Battlephase_Unit) and ((((Matching unit) belongs to
-




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





Loop - Actions
-






Unit - Cause Shifting_Battlephase_Unit to damage (Picked unit), dealing (4.00 x (Real((Level of Bash for Shifting_Battlephase_Unit)))) damage of attack type Spells and damage type Magic
-






Unit - Move (Picked unit) instantly to Shifting_Battlephase_Off_2
-
-
-




Set Shifting_Battlephase_Distance = (Shifting_Battlephase_Distance - 40.00)
-




Custom script: call RemoveLocation(udg_Shifting_Battlephase_Point_Off)
-




Custom script: call RemoveLocation(udg_Shifting_Battlephase_Off_2)
-




Custom script: call RemoveLocation(udg_Shifting_Battlephase_Point)
-




Custom script: call DestroyGroup(udg_Shifting_Battlephase_Group)
-
-
-
-
Tiche3









