Healp remove leaks and proof read.

squorpion

New Member
Reaction score
12
I thought i removed the leaks right but it disable trigger because it expects a function any help please?

Trigger:
  • Darkness
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Darkness
    • Actions
      • Set Darkness_point = (Position of (Triggering unit))
      • Hashtable - Create a hashtable
      • Set Lightning_hash = (Last created hashtable)
      • Hashtable - Create a hashtable
      • Set Dummy_position_hash = (Last created hashtable)
      • Unit - Pause (Triggering unit)
      • Unit - Make (Triggering unit) Invulnerable
      • Special Effect - Create a special effect at Darkness_point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Set Darkness_Nova_end = (Darkness_point offset by 50.00 towards (10.00 x (Real((Integer A)))) degrees)
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Darkness Dummy for (Triggering player) at Darkness_point facing Default building facing degrees
          • Unit - Add Carrion Swarm to (Last created unit)
          • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Darkness_Nova_end
      • Unit Group - Pick every unit in (Units within 500.00 of Darkness_point matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)
      • Wait 0.03 seconds
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Darkness Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 1.00 seconds
      • Special Effect - Create a special effect at Darkness_point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Darkness Dummy for (Triggering player) at Darkness_point facing Default building facing degrees
          • Unit - Add Carrion Swarm to (Last created unit)
          • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Darkness_Nova_end
      • Wait 0.05 seconds
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Darkness Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 1.00 seconds
      • Special Effect - Create a special effect at Darkness_point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Darkness Dummy for (Triggering player) at Darkness_point facing Default building facing degrees
          • Unit - Add Carrion Swarm to (Last created unit)
          • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Darkness_Nova_end
      • Wait 0.05 seconds
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Darkness Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 1.00 seconds
      • Special Effect - Create a special effect at Darkness_point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Darkness Dummy for (Triggering player) at Darkness_point facing Default building facing degrees
          • Unit - Add Carrion Swarm to (Last created unit)
          • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Darkness_Nova_end
      • Wait 0.05 seconds
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Darkness Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 1.00 seconds
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (0.00, 300.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 1 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (0.00, 30.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 1 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (300.00, 0.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 2 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (30.00, 0.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 2 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (0.00, -300.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 3 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (0.00, -30.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 3 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (-300.00, 0.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 4 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (-30.00, 0.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 4 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (225.00, 225.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 5 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (25.00, 25.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 5 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (-225.00, -225.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 6 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (-25.00, -25.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 6 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (-225.00, 225.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 7 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (-25.00, 25.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 7 of 8 in Lightning_hash
      • Unit - Create 1 Darkness Dummy for (Triggering player) at (Darkness_point offset by (225.00, -225.00)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Position of (Last created unit)) as 8 of 8 in Dummy_position_hash
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of (Last created unit)) to target (Darkness_point offset by (25.00, -25.00))
      • Hashtable - Save Handle Of(Last created lightning effect) as 8 of 8 in Lightning_hash
      • Wait 3.00 seconds
      • Set Loop = 0
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Lightning - Destroy (Load Loop of 8 in Lightning_hash)
          • Set Loop = (Loop + 1)
      • Special Effect - Create a special effect at Darkness_point using Abilities\Spells\Orc\Voodoo\VoodooAura.mdl
      • Hashtable - Save Handle Of(Last created special effect) as 1 of 10 in Effect
      • Set Loop = 0
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at (Load Loop of 8 in Dummy_position_hash) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
          • Set Loop = (Loop + 1)
      • Environment - Create a 3.00 second Temporary crater deformation at Darkness_point with radius 500.00 and depth 200.00
      • Wait 2.00 seconds
      • Environment - Create a 2.00 second Depression ripple deformation at Darkness_point with starting radius 1024.00, ending radius 1024.00, and depth 200.00, using 0.50 second ripples spaced 512.00 apart
      • Environment - Create Blight for (Owner of (Triggering unit)) from Darkness_point to a radius of 100.00
      • Wait 0.25 seconds
      • Environment - Create Blight for (Owner of (Triggering unit)) from Darkness_point to a radius of 200.00
      • Wait 0.25 seconds
      • Environment - Create Blight for (Owner of (Triggering unit)) from Darkness_point to a radius of 300.00
      • Wait 0.25 seconds
      • Environment - Create Blight for (Owner of (Triggering unit)) from Darkness_point to a radius of 400.00
      • Wait 0.25 seconds
      • Environment - Create Blight for (Owner of (Triggering unit)) from Darkness_point to a radius of 500.00
      • Wait 1.00 seconds
      • Game - Set the time of day to 24.00
      • Special Effect - Destroy (Load 1 of 10 in Effect)
      • Unit - Remove (Picked unit) from the game
      • Special Effect - Create a special effect at Darkness_point using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Darkness Dummy) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 0.50 seconds
      • Unit - Unpause (Triggering unit)
      • Unit - Make (Triggering unit) Vulnerable
      • Custom script: call remove location (udg_Darkness_point)
      • Custom script: call remove location (udg_Darkness_Nova_end)
      • Custom script: call remove location (udg_Dummy_positions)
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Make sure that were there are capitals ther r capitals and _ ther r _ and wher ther r no capitals ther r no capitals
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
R u sure that ur not destroying something that is not there sory to tired to look at ur very very very very very very very very long triger
 

WolfieeifloW

WEHZ Helper
Reaction score
372
This spell won't work for more then one unit casting it at a time;
Just so you know.

You seem to not destroy the effects.
I can't read it anymore though.
It's burning my eyes :p .
 

squorpion

New Member
Reaction score
12
lol i know its long. i remove all the special effects with either remove last created or with a hashtable. Ah lol im an idiot XD i put space between remove and location. hmm i seem to have another problem then with this one

Code:
call RemoveLocation (udg_Dummy_positions)

Dummy_positions is a point array, apperently that changes the required code to stop the leak?? anyone know how?

lol shit i never noticed that... damnit i wonder what would happen if two people use it though, prob get a crit error. the skill is amazing though XD im still not completely done with it. need to add some damage when the distortion wave goes out. ganna add a imolation efect during spell also.
 

Ayanami

칼리
Reaction score
288
Trigger:
  • call RemoveLocation (udg_Dummy_positions[udg_Variable])


Well normally I remove arrays in this manner.
 

squorpion

New Member
Reaction score
12
Trigger:
  • call RemoveLocation (udg_Dummy_positions[udg_Variable])


Well normally I remove arrays in this manner.

ok i just did this and it didnt work

Code:
call RemoveLocation (udg_Dummy_positions[udg_Variable])

everything concerning my variable is correct, since i have never use this script did i do it wrond or something???
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
It's not udg_Variable...
he means replace it with an integer...

Much like normal arrays, you put [1] for the first array, [2] for the second, etc.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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