Need help wiht leak spell

Fegga5

New Member
Reaction score
4
How can I do this spell leak less?
Code:
Spell number ultimate
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Ice Lord's wrath 
    Actions
        Set Caster_U = (Triggering unit)
        Set Casters_point_U = (Position of Caster_U)
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 0.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 0.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 90.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 90.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 180.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 180.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 270.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 270.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 100.00 towards 9.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 100.00 towards 9.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 100.00 towards 99.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 100.00 towards 99.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 100.00 towards 189.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 100.00 towards 189.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 100.00 towards 279.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 100.00 towards 279.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 125.00 towards 18.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 125.00 towards 18.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 125.00 towards 108.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 125.00 towards 108.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 125.00 towards 198.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 125.00 towards 198.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 125.00 towards 289.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 125.00 towards 289.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 150.00 towards 27.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 150.00 towards 27.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 150.00 towards 117.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 150.00 towards 117.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 150.00 towards 206.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 150.00 towards 206.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 150.00 towards 297.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 150.00 towards 297.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 175.00 towards 36.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 175.00 towards 36.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 175.00 towards 126.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 175.00 towards 126.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 175.00 towards 216.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 175.00 towards 216.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 175.00 towards 306.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 175.00 towards 306.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 200.00 towards 45.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 200.00 towards 45.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 200.00 towards 135.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 200.00 towards 135.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 200.00 towards 225.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 200.00 towards 225.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 200.00 towards 315.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 200.00 towards 315.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Unit - Make Caster_U Invulnerable
        Special Effect - Create a special effect at (Casters_point_U offset by 225.00 towards 54.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 225.00 towards 54.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 225.00 towards 144.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 225.00 towards 144.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 225.00 towards 234.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 225.00 towards 234.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 225.00 towards 324.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 225.00 towards 324.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Unit - Make Caster_U Vulnerable
        Wait 0.05 seconds
        Special Effect - Create a special effect at (Casters_point_U offset by 250.00 towards 63.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 250.00 towards 63.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 250.00 towards 153.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 250.00 towards 153.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 250.00 towards 243.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 250.00 towards 243.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 250.00 towards 333.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 250.00 towards 333.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Wait 0.05 seconds
        Special Effect - Create a special effect at (Casters_point_U offset by 275.00 towards 72.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 275.00 towards 72.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 275.00 towards 162.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 275.00 towards 162.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 275.00 towards 252.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 275.00 towards 252.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 275.00 towards 342.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 275.00 towards 342.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Wait 0.05 seconds
        Special Effect - Create a special effect at (Casters_point_U offset by 300.00 towards 81.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 300.00 towards 81.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 300.00 towards 171.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 300.00 towards 171.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 300.00 towards 261.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 300.00 towards 261.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 300.00 towards 351.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 351.00 towards 81.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Wait 0.05 seconds
        Special Effect - Create a special effect at (Casters_point_U offset by 325.00 towards 90.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 325.00 towards 90.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 325.00 towards 180.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 325.00 towards 180.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 325.00 towards 270.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 325.00 towards 270.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
        Special Effect - Create a special effect at (Casters_point_U offset by 325.00 towards 360.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
        Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 325.00 towards 360.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
Its a bit to long to! :)
 

Flare

Stops copies me!
Reaction score
662
1) Use loops.

2) Set the caster's location to a point variable, set the "point offset by X towards Y degrees" to another point variable, using the first point variable as the origin point
e.g.
Code:
Set Point1 = Position of <unit>
Set Point2 = Point1 offset by 10 towards 50 degrees
Do your actions
Custom script: call RemoveLocation (udg_Point1)
Custom script: call RemoveLocation (udg_Point2)

3) Search for a leak tutorial, you'll need it
 

Fegga5

New Member
Reaction score
4
hehe! ok! thx!

Okey! I did something wrong but i dont know what, can you help me?
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Ice Lord's wrath 
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Set Casters_point_U = (Position of (Triggering unit))
                Set Offset_point_U = ((Position of (Last created unit)) offset by 25.00 towards 9.00 degrees)
                Unit - Make (Triggering unit) Invulnerable
                Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 0.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 0.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
                Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 90.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 90.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
                Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 180.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 180.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
                Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards 270.00 degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards 270.00 degrees), dealing 20.00 damage of attack type Spells and damage type Cold
                Unit - Make (Triggering unit) Vulnerable
                Wait 0.05 seconds
                Custom script:   call RemoveLocation (udg_Caster_point_U)
                Custom script:   call RemoveLocation (udg_Offset_point_U)
 

TDN

New Member
Reaction score
3
You could try this for each section:

For each integer A from 1 to 4 do actions
Special Effect - Create a special effect at (Casters_point_U offset by 75.00 towards ((Integer A -1) * 90) degrees) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Destroy last created special effect
Unit - Cause Caster_U to damage circular area after 0.00 seconds of radius 200.00 at (Casters_point_U offset by 75.00 towards ((Integer A -1) * 90) degrees), dealing 20.00 damage of attack type Spells and damage type Cold

Note: I didn't use the editor to write this, so some things may be slightly off.

I'm not sure if creating special effects leaks, but assuming it does, you'd destroy them immediately after creation (it should still display the animation).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top