- Joined
- Sep 3, 2009
- Messages
- 458
Hey guys. Well I need some help with this spell of mine. After a few uses of my spell it creates massive lag in my map. I tried to remove all the leaks that I could and think caused the lag but it still happens all the time. Please I need your help.
Basic info on the spell:
Dragon Rush - Kajima blinks to a target location and slashes his sword on the ground, damaging and slowing nearby units around the where he slashed his sword and damaging him by half the damage.
Here's the trigger
Initially On
Basic info on the spell:
Dragon Rush - Kajima blinks to a target location and slashes his sword on the ground, damaging and slowing nearby units around the where he slashed his sword and damaging him by half the damage.
Here's the trigger
Initially On
-
Dragon Rush Start
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Dragon Rush
-
-
Actions
-
Trigger - Turn on Dragon Rush Fin <gen>
-
Set DR_Caster = (Casting unit)
-
Set DR_Point = (Target point of ability being cast)
-
Set DR_DmgPoint = (DR_Point offset by 150.00 towards (Facing of DR_Caster) degrees)
-
-
-
Dragon Rush Fin
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Set DR_Multiplier = 1.50
-
Set DR_Damage = (((Agility of DR_Caster (Include bonuses)) x (Integer(DR_Multiplier))) + ((Strength of DR_Caster (Include bonuses)) + (Intelligence of DR_Caster (Include bonuses))))
-
Set DR_Counter = (DR_Counter + 0.01)
-
Set DR_Flag1 = False
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DR_Counter Greater than or equal to 0.07
-
DR_Flag1 Equal to False
-
-
Then - Actions
-
Unit - Move DR_Caster instantly to DR_Point
-
Unit - Create 1 Dummy Unit for (Owner of DR_Caster) at DR_DmgPoint facing Default building facing degrees
-
Set DR_Dummy = (Last created unit)
-
Set DR_Flag1 = True
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DR_Counter Greater than or equal to 0.60
-
-
Then - Actions
-
Unit - Add Thunder Clap (Dragon Rush) to DR_Dummy
-
Unit - Set level of Thunder Clap (Dragon Rush) for DR_Dummy to (Level of Dragon Rush for DR_Caster)
-
Special Effect - Create a special effect at DR_DmgPoint using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
-
Unit - Order DR_Dummy to Human Mountain King - Thunder Clap
-
Unit - Cause DR_Caster to damage circular area after 0.00 seconds of radius 300.00 at DR_DmgPoint, dealing (Real(DR_Damage)) damage of attack type Hero and damage type Normal
-
Unit - Cause DR_Caster to damage DR_Caster, dealing ((Real(DR_Damage)) / 2.00) damage of attack type Hero and damage type Normal
-
Set DR_Effect = (Last created special effect)
-
Set DR_Counter = 0.00
-
Special Effect - Destroy DR_Effect
-
Custom script: call RemoveLocation (udg_DR_Point)
-
Custom script: call RemoveLocation (udg_DR_DmgPoint)
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-