- Joined
- Oct 31, 2007
- Messages
- 14
Hello everyone!
I made a spell via trigger that works perfectly fine (but leaks), and when I add the custom script to remove location memory leaks it stops working, like it can't find location anymore.
I made a spell via trigger that works perfectly fine (but leaks), and when I add the custom script to remove location memory leaks it stops working, like it can't find location anymore.
-
Crushing Wave
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Vague écrasante
-
-
Actions
-
Set VariableSet WaveCaster = (Triggering unit)
-
Set VariableSet WaveAngle = (Angle from (Position of WaveCaster) to (Target point of ability being cast))
-
Set VariableSet WavePoint = (Position of WaveCaster)
-
Set VariableSet WaveCount = 20
-
Set VariableSet WaveDamage = ((Max mana of WaveCaster) x (0.02 + (0.01 x (Real((Level of Vague écrasante for WaveCaster))))))
-
Trigger - Turn on Wave Creation <gen>
-
-
-
Wave Creation
-
Events
-
Time - Every 0.05 seconds of game time
-
-
Conditions
-
Actions
-
Set VariableSet WaveCount = (WaveCount - 1)
-
Set VariableSet WavePoint = (WavePoint offset by 25.00 towards WaveAngle degrees.)
-
Set VariableSet locx[1] = WavePoint
-
Set VariableSet locx[2] = WavePoint
-
Set VariableSet locx[3] = WavePoint
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within (100.00 + (200.00 - (10.00 x (Real(WaveCount))))) of locx[1] matching ((((Matching unit) is alive) Equal to Vrai) and (((Matching unit) belongs to an enemy of (Owner of WaveCaster).) Equal to Vrai)).) and do (Actions)
-
Loop - Actions
-
Unit - Cause WaveCaster to damage (Picked unit), dealing WaveDamage damage of attack type Spells and damage type Normal
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within (100.00 + (200.00 - (10.00 x (Real(WaveCount))))) of locx[2] matching ((((Matching unit) has buff Tornade (Aura de lenteur)) Equal to Vrai) and (((Matching unit) belongs to an enemy of (Owner of WaveCaster).) Equal to Vrai)).) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for (Owner of WaveCaster) at (Position of (Picked unit)) facing Default building facing degrees
-
Unit - Add DummyWave to (Last created unit)
-
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
-
-
Special Effect - Create a special effect at locx[3] using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_locx[1])
-
Custom script: call RemoveLocation(udg_locx[2])
-
Custom script: call RemoveLocation(udg_locx[3])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
WaveCount Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Custom script: call RemoveLocation(udg_WavePoint)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_locx[1])
-
Custom script: call RemoveLocation(udg_locx[2])
-
Custom script: call RemoveLocation(udg_locx[3])
Last edited: