- Joined
- Feb 9, 2009
- Messages
- 1,801
I only have a casual sense of Locals and was curious if this [GUI] trigger in anyway leaks.
First and foremost need to know if this trigger i've done leaks but secondary to that if there is a more efficient way of doing this or transforming this into JASS I'd love to hear it.
Trigger in question:
Thank you for taking the time to read this.
First and foremost need to know if this trigger i've done leaks but secondary to that if there is a more efficient way of doing this or transforming this into JASS I'd love to hear it.
Trigger in question:
-
FRee Cast Individual Copy
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
Custom script: local effect udg_sfx
-
Custom script: local integer udg_Counter
-
Set VariableSet FRee_A_Unit[0] = (Triggering unit)
-
For each (Integer Counter) from 1 to 3, do (Actions)
-
Loop - Actions
-
Set VariableSet FRee_A_Point[0] = (Position of FRee_A_Unit[0])
-
Set VariableSet FRee_A_Point[1] = (FRee_A_Point[0] offset by 90.00 towards (Facing of FRee_A_Unit[0]) degrees.)
-
Special Effect - Create a special effect at FRee_A_Point[0] using war3mapImported\Reapers Claws Red.mdx
-
Custom script: set udg_sfx = GetLastCreatedEffectBJ()
-
Special Effect - Set Orientation of sfx to yaw: (Radians((Facing of FRee_A_Unit[0]))), pitch: 0.00, roll: (Radians((350.00 - (45.00 x (Real(Counter))))))
-
Special Effect - Set Height of sfx to: (90.00 + (Position - Z of FRee_A_Unit[0]))
-
Special Effect - Destroy sfx
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 225.00 of FRee_A_Point[1].) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Not equal to FRee_A_Unit[0]
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Cause FRee_A_Unit[0] to damage (Picked unit), dealing (7.00 + ((((Max life of (Picked unit)) - (Life of (Picked unit))) x 0.12) + ((Real((Strength of FRee_A_Unit[0] (Include bonuses)))) x 0.33))) damage of attack type Spells and damage type Normal
-
Unit - Set life of FRee_A_Unit[0] to ((Life of FRee_A_Unit[0]) + ((7.00 + ((((Max life of FRee_A_Unit[0]) - (Life of (Picked unit))) x 0.12) + ((Real((Strength of FRee_A_Unit[0] (Include bonuses)))) x 0.33))) x 0.10))
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_FRee_A_Point[1])
-
Custom script: call RemoveLocation(udg_FRee_A_Point[0])
-
Custom script: set udg_sfx = null
-
Wait 0.15 seconds
-
-
-
Custom script: set udg_Counter = 0
-
-
Thank you for taking the time to read this.
Last edited: