Spell Earth Smash

PiCkstix

New Member
Reaction score
18
Earth Smash:

Sucks in enemy and friendly units around the Tauren within a range of 250. If the unit is friendly, it acts as a protection spell and makes the unit invulnerable, but it if it is an enemy it will deal damage to all enemies in an AOE of 250.

Level 1: Deals 125 damage.
Level 2: Deals 250 damage.
Level 3: Deals 375 damage.

This is, as I said, a very simple spell which you can use at your own will...

If you use it in your map... Credits will be good :D

Awe,
PiCk :cool:

End of Casting Earth Smash:

24gtyz8.jpg


Code:
Smash
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Earth Smash 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Earth Smash  for (Triggering unit)) Equal to 1
            Then - Actions
                Set Smasher = (Triggering unit)
                Set SmashPoint = (Position of (Triggering unit))
                Unit - Make (Triggering unit) Invulnerable
                Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        If ((Owner of (Picked unit)) Equal to (Owner of (Triggering unit))) then do (Unit - Make (Picked unit) Invulnerable) else do (Do nothing)
                        Unit - Pause (Picked unit)
                        Unit - Move (Picked unit) instantly to SmashPoint
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 0.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 90.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 180.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 270.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 0.00 towards 0.00 degrees) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 0.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 90.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 180.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 270.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 250.00 at SmashPoint, dealing 125.00 damage of attack type Spells and damage type Normal
                Wait 0.25 seconds
                Unit - Unpause all units
                Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        Unit - Make (Picked unit) Vulnerable
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Earth Smash  for (Triggering unit)) Equal to 2
            Then - Actions
                Set Smasher = (Triggering unit)
                Set SmashPoint = (Position of (Triggering unit))
                Unit - Make (Triggering unit) Invulnerable
                Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        If ((Owner of (Picked unit)) Equal to (Owner of (Triggering unit))) then do (Unit - Make (Picked unit) Invulnerable) else do (Do nothing)
                        Unit - Pause (Picked unit)
                        Unit - Move (Picked unit) instantly to SmashPoint
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 0.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 90.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 180.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 270.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 0.00 towards 0.00 degrees) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 0.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 90.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 180.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 270.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 250.00 at SmashPoint, dealing 250.00 damage of attack type Spells and damage type Normal
                Wait 0.25 seconds
                Unit - Unpause all units
                Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        Unit - Make (Picked unit) Vulnerable
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Earth Smash  for (Triggering unit)) Equal to 3
            Then - Actions
                Set Smasher = (Triggering unit)
                Set SmashPoint = (Position of (Triggering unit))
                Unit - Make (Triggering unit) Invulnerable
                Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        If ((Owner of (Picked unit)) Equal to (Owner of (Triggering unit))) then do (Unit - Make (Picked unit) Invulnerable) else do (Do nothing)
                        Unit - Pause (Picked unit)
                        Unit - Move (Picked unit) instantly to SmashPoint
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 0.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 90.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 180.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 270.00 degrees)
                Wait 0.25 seconds
                Unit - Move (Triggering unit) instantly to SmashPoint
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
                Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 0.00 towards 0.00 degrees) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 0.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 90.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 180.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards 270.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 250.00 at SmashPoint, dealing 375.00 damage of attack type Spells and damage type Normal
                Wait 0.25 seconds
                Unit - Unpause all units
                Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        Unit - Make (Picked unit) Vulnerable
            Else - Actions
 

NapaHero

Back from the dead...
Reaction score
43
Where's the screenshot? Where's the code? Is this MUI/MPI? Leaks? Lagless? Your spell won't be approved that way.
 

PiCkstix

New Member
Reaction score
18
Lagless and no leaks since I checked...

Screenies added...

GUI like I said in post #1...
 

NapaHero

Back from the dead...
Reaction score
43
Can you post the code (trigger)? That way, we can check if there's no problem with your spell.
 

Tinki3

Special Member
Reaction score
418
There are many leaks in your trigger.
I highly advise you to read this tutorial on memory leaks, and then fix your code.

I'll point out a small number of leaks:
Code:
-> Unit - Move (Triggering unit) instantly to [B](SmashPoint offset by 200.00 towards 90.00 degrees)[/B]
-> Unit Group - Pick every unit in [B](Units within 250.00 of (Position of (Triggering unit))) and do (Actions)[/B] [COLOR="Green"]//Also leaking a unit group[/COLOR]
-> Special Effect - Create a special effect at [B](Position of (Triggering unit))[/B] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl [COLOR="Green"]//Also undestroyed special effect[/COLOR]
The spell looked weird in-game. There were no animations played.
The hero just jolted from one spot to another and then deals damage in an area.

If I were you, I'd remove the random re-locating, have the hero play an
animation when the damage takes place, and use a Unit Group function
with a "Unit - Cause (<unit>) to damage (Picked unit) dealing <damage>"
function instead of the circular area damage function (it damages allies too).

Also, the way you use gigantic If-then-else statements to only deal
a different amount of damage/level is not very good at all.
I would use a simple mathematical statement inside the damage function
to determine how much damage is to be dealt to units by the caster.

For ex,
Code:
Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Real((Level of (Ability being cast) for (Triggering unit)))) x 125.00) damage of attack type Spells and damage type Normal
In doing that, you can get rid of that huge ugly block of If-then-elses :).
The calculation gives: 125/250/375 damage/level, which is perfect.
 

Fhxy

New Member
Reaction score
1
All leaks found in your spells are listed below
Maybe you can take a look at how to prevent leaks before remaking your spell ?


Code:
(Line: 13 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions) 
 
 (Line: 13 ) (Word: 12 )  Position Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 33 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 33 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 34 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 34 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 35 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  0.00  towards  0.00  degrees)  using  Abilities\Spells\Other\Levelup\LevelupCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 36 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  0.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 37 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  90.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 38 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  180.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 39 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  270.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 43 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  in  (Playable  map  area)  owned  by  (Owner  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions) 
 
 (Line: 54 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions) 
 
 (Line: 54 ) (Word: 12 )  Position Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 74 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 74 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 75 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 75 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 76 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  0.00  towards  0.00  degrees)  using  Abilities\Spells\Other\Levelup\LevelupCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 77 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  0.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 78 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  90.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 79 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  180.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 80 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  270.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 84 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  in  (Playable  map  area)  owned  by  (Owner  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions) 
 
 (Line: 95 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions) 
 
 (Line: 95 ) (Word: 12 )  Position Leak
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  (Units  within  250.00  of  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit)))  and  do  (Actions)    
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 115 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 115 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 116 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 116 ) (Word: 9 )  Position Leak
 Special  Effect  -  Create  a  special  effect  at  (Position  of  (Triggering  unit))  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  Create  a  special  effect  at  ^Leak
 (Suggested fix) Set L =  (Position  of  (Triggering  unit))  
 (Suggested fix) Custom Script: Call RemoveLocation(udg_L) 
 
 (Line: 117 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  0.00  towards  0.00  degrees)  using  Abilities\Spells\Other\Levelup\LevelupCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 118 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  0.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 119 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  90.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 120 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  180.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 121 ) (Word: 4 )  Special Effect Leak
 Special  Effect  -  Create  a  special  effect  at  ((Position  of  (Triggering  unit))  offset  by  200.00  towards  270.00  degrees)  using  Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl    
 Special  Effect  -  ^Leak
 (Suggested fix) Special Effect - Destroy (Last created special effect)

 (Line: 125 ) (Word: 8 )  Unit Group Leak
 Unit  Group  -  Pick  every  unit  in  (Units  in  (Playable  map  area)  owned  by  (Owner  of  (Triggering  unit)))  and  do  (Actions)    
 Unit  Group  -  Pick  every  unit  in  ^Leak
 (Suggested fix) Custom Script: bj_wantDestroyGroup = true
 (Suggested fix) Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions) 
 
 Location variable has not been removed: SmashPoint
 Location variable has not been removed: SmashPoint
 Location variable has not been removed: SmashPoint
 

Somatic

You can change this now in User CP.
Reaction score
84
You know, give some constructive comments, look above.

There are many leaks in your trigger.
I highly advise you to read this tutorial on memory leaks, and then fix your code.

I'll point out a small number of leaks:

Code:
Code:
-> Unit - Move (Triggering unit) instantly to (SmashPoint offset by 200.00 towards 90.00 degrees)
-> Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions) //Also leaking a unit group
-> Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl //Also undestroyed special effect

Its already notified. Infact i am considered spamming now. =/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top