Is this spell leak-free?

unknown666

New Member
Reaction score
5
As asked above, is this leak-free?

Trigger:
  • Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Snow Cloud
    • Actions
      • Set UnitCaster = (Triggering unit)
      • Unit - Add SnowWalk to UnitCaster
      • Unit - Order UnitCaster to Orc Blademaster - Wind Walk
      • Unit - Remove SnowWalk from UnitCaster
      • Set TempPoint = (Position of UnitCaster)
      • Unit - Create 1 Dummy for (Owner of UnitCaster) at TempPoint facing Default building facing degrees
      • Set TempUnit = (Last created unit)
      • Unit - Add a 10.00 second Generic expiration timer to TempUnit
      • Unit - Add Snow to TempUnit
      • Unit - Order TempUnit to Undead Crypt Lord - Locust Swarm
      • Wait 10.00 seconds
      • Custom script: call RemoveLocation (udg_TempPoint)
 

simonake

New Member
Reaction score
72
Yes, no wait = MUI.
Jass make spell casi-automaticly MUI.

If you want to make it over leakless, but it not needed, you could use this script.
Trigger:
  • Custom script: set udg_UnitCaster = null


But it not needed, unit global variables not use to leak.
 

Romek

Super Moderator
Reaction score
964
> If you want to make it over leakless, but it not needed, you could use this script.
That will do nothing at all, and is just a waste of a line and efficiency.

> But it not needed
Congratulations on posting it though, and probably confusing people. :)
 

simonake

New Member
Reaction score
72
Thanks Romek, it been told 2 time that it wasn't needed.

And I really need to start learning Jass sometime.. lol
You should start now, Jass is long to learn, don't wait warcraft to loose it popularity. Jass is better for Spells. (It's better for everything) just complicated. I admit that i use GUI for easy things :D
But not for spells.
 

unknown666

New Member
Reaction score
5
I've been trying Jass before, but it was such complicated to learn, but it was like 2 years ago while I was 13 years old, so I'll start again any time soon :)
 

simonake

New Member
Reaction score
72
Read tutorials and download JassCraft, it's magic.

It probally the easiest way. You should read Romek's Tutorial ^^ :D
 
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