Zackreaver
New Member
- Reaction score
- 2
Hello there, on my map I've had this one particular trigger that has been causing a repeating pause in the game, I'm absolutely certain its this trigger because I have tested it out with the trigger shut off.
At any rate, I've checked the trigger for leaks, its clean from what the leak checker says and yet everytime the trigger goes off, which is a periodic 1 second, theres a tiny pause in the gameplay. I'm not sure if this is avoidable but I want to make sure, so here is my question:
Will converting the following trigger to JASS format have any impact on the lag its causing? Will using local's and hand made function's remove/lower the pause that I constantly get? If so, where should I focus mainly, and if not what should do, because I need the trigger.
I'm still learning JASS, but from what I figured out, JASS might solve my problem, but this trigger is enormous and I want to make sure the conversion will even make a bit of difference, if it will I'll get to work, if it wont... well I'll still do it later.
PS. Part of it might be my computer not being perfect, other people seem to not get any pause's, but I still want to lower the lag if the possibility is open.
At any rate, I've checked the trigger for leaks, its clean from what the leak checker says and yet everytime the trigger goes off, which is a periodic 1 second, theres a tiny pause in the gameplay. I'm not sure if this is avoidable but I want to make sure, so here is my question:
Will converting the following trigger to JASS format have any impact on the lag its causing? Will using local's and hand made function's remove/lower the pause that I constantly get? If so, where should I focus mainly, and if not what should do, because I need the trigger.
Code:
Periodic 1 Second
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
-------- Twilight Fortress Immobility --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 5.99
(In-game time of day) Less than or equal to 18.00
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Twilight Fortress (Zack) "Dark"
(Unit-type of (Picked unit)) Equal to Twilight Fortress Landed (Landed)(Zack) "Dark"
Then - Actions
Unit - Add zDaylight Power Drain to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(In-game time of day) Less than 5.99
(In-game time of day) Greater than 18.00
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Twilight Fortress (Zack) "Dark"
(Unit-type of (Picked unit)) Equal to Twilight Fortress Landed (Landed)(Zack) "Dark"
Then - Actions
Unit - Remove zDaylight Power Drain from (Picked unit)
Else - Actions
Do nothing
-------- Godfather Upgrade Skill Level --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Treant Godfather (Zack) "Nature"
(Level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit)) Not equal to 1
Then - Actions
Unit - Set level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit) to 1
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Greater Treant Godfather (Zack) "Nature"
(Level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit)) Not equal to 2
Then - Actions
Unit - Set level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit) to 2
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Ancient Treant Godfather (Zack) "Nature"
(Level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit)) Not equal to 3
Then - Actions
Unit - Set level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to God of Nature (Zack) "Nature"
(Level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit)) Not equal to 3
Then - Actions
Unit - Set level of zBonding Ritual 2 (Zack) "Nature" for (Picked unit) to 3
Else - Actions
Do nothing
-------- Dark Resource Harvest --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Dark Shroud Invisible ) Equal to True
Then - Actions
Unit - Add zDark Shroud Invisible Permanent 2 to (Picked unit)
Else - Actions
Unit - Remove zDark Shroud Invisible Permanent 2 from (Picked unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Dark Shroud ) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current order of (Picked unit)) Equal to (Order(starfall))
Then - Actions
Set Temp_Point = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 12.00
Then - Actions
Set Temp_Int = ((Integer((In-game time of day))) - 12)
Set Temp_Int = (Temp_Int + ((Integer(((Max life of (Picked unit)) - (Life of (Picked unit))))) / 30))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Less than 12.00
Then - Actions
Set Temp_Int = (12 - (Integer((In-game time of day))))
Set Temp_Int = (Temp_Int + ((Integer(((Max life of (Picked unit)) - (Life of (Picked unit))))) / 30))
Else - Actions
Do nothing
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)
Player - Add Temp_Int to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads (+ + (String(Temp_Int))) at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of (Picked unit))))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Set Temp_Int = 0
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Do nothing
Else - Actions
Do nothing
-------- Rain Resource Harvest --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff zRain ) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Water Well (Zack) "Water"
(Unit-type of (Picked unit)) Equal to Temple of the Sea (Zack) "Water"
Then - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + 5.00)
Else - Actions
Do nothing
Player - Add 1 to (Owner of (Picked unit)) Current gold
Set Temp_Point = (Position of (Picked unit))
Floating Text - Create floating text that reads +1 at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of (Picked unit))))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
-------- Mist Form --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Mist Form ) Equal to True
Then - Actions
Unit - Add Mist Form Evasion to (Picked unit)
Else - Actions
Unit - Remove Mist Form Evasion from (Picked unit)
-------- Fire Resource Harvest --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Fire (Zack) "Fire"
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)
Set Temp_Point = (Position of (Picked unit))
Floating Text - Create floating text that reads +1 at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of (Picked unit))))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_Point)
Player - Add 1 to (Owner of (Picked unit)) Current gold
Set Temp_Point2 = (Position of (Picked unit))
Destructible - Pick every destructible within 290.00 of Temp_Point2 and do (Actions)
Loop - Actions
Set Temp_Point3 = (Position of (Picked destructible))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between Temp_Point2 and Temp_Point3) Less than or equal to 290.00
((Picked destructible) is alive) Equal to True
(Destructible-type of (Picked destructible)) Not equal to Rock Chunks
Then - Actions
Set Temp_Point = (Position of (Picked destructible))
Special Effect - Create a special effect at Temp_Point using Abilities\Weapons\DemolisherFireMissile\DemolisherFireMissile.mdl
Special Effect - Destroy (Last created special effect)
Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 5.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to Coal
Then - Actions
Player - Add 2 to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads +2 at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of (Picked unit))))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Else - Actions
Player - Add 1 to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads +1 at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of (Picked unit))))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Do nothing
Custom script: call RemoveLocation(udg_Temp_Point3)
Set TempUnit = (Picked unit)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 290.00 of Temp_Point2) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to True
(Unit-type of (Picked unit)) Not equal to Shadow Wall (Zack) "Dark"
((Picked unit) is alive) Equal to True
((Picked unit) belongs to an enemy of (Owner of TempUnit)) Equal to True
Then - Actions
Set Temp_Point = (Position of (Picked unit))
Special Effect - Create a special effect at Temp_Point using Abilities\Weapons\DemolisherFireMissile\DemolisherFireMissile.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause TempUnit to damage (Picked unit), dealing 20.00 damage of attack type Siege and damage type Fire
Player - Add 3 to (Owner of TempUnit) Current gold
Floating Text - Create floating text that reads +3 at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of TempUnit)))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Custom script: call RemoveLocation(udg_Temp_Point)
Else - Actions
Do nothing
Set TempUnit = No unit
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
-------- Trap Trigger --------
-------- Motion Trigger --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Motion Trigger (Zack) "Dark"
Then - Actions
Set Temp_Int = (Temp_Int + 100)
Set Temp_Point = (Position of (Picked unit))
Set TempUnit2 = (Picked unit)
-------- Are the nearby units enemies? --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of TempUnit2)) Equal to True
((Picked unit) is alive) Equal to True
Then - Actions
Set TempUnit = (Picked unit)
-------- Explosive Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Equal to Explosive Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Special Effect - Create a special effect at Temp_Point2 using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Set Temp_Int = (Temp_Int + 135)
Unit - Kill (Picked unit)
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zExplosive Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
-------- Magic Distortion Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Equal to Magic Distortion Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Set Temp_Int = (Temp_Int + 375)
Unit - Kill (Picked unit)
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zMagic Distortion Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Priest - Dispel (Last created unit)
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
-------- Black Spider's Web Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Equal to Black Spider's Web Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Set Temp_Int = (Temp_Int + 188)
Unit - Kill (Picked unit)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point2) and do (Actions)
Loop - Actions
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zEnsnare Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Crypt Fiend - Web (Picked unit)
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
Set TempUnit = No unit
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TrapBool Equal to True
Then - Actions
Player - Add Temp_Int to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads (+ + (String(Temp_Int))) at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of TempUnit2)))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Unit - Kill TempUnit2
Else - Actions
Do nothing
Set TempUnit2 = No unit
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Int = 0
Set TrapBool = False
Else - Actions
Do nothing
-------- Tremor Trigger --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Tremor Trigger (Zack) "Dark"
Then - Actions
Set Temp_Int = (Temp_Int + 100)
Set Temp_Point = (Position of (Picked unit))
Set TempUnit2 = (Picked unit)
-------- Are the nearby units enemies? --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of TempUnit2)) Equal to True
((Picked unit) is alive) Equal to True
((Picked unit) is A flying unit) Equal to False
Then - Actions
Set TempUnit = (Picked unit)
-------- Explosive Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Explosive Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Special Effect - Create a special effect at Temp_Point2 using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Set Temp_Int = (Temp_Int + 112)
Unit - Kill (Picked unit)
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zExplosive Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
-------- Magic Distortion Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Equal to Magic Distortion Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Set Temp_Int = (Temp_Int + 312)
Unit - Kill (Picked unit)
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zMagic Distortion Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Priest - Dispel (Last created unit)
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
-------- Black Spider's Web Trap --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Equal to Black Spider's Web Trap (Zack) "Dark"
(Owner of (Picked unit)) Equal to (Owner of TempUnit2)
(Percentage life of (Picked unit)) Greater than or equal to 100.00
Then - Actions
Set TrapBool = True
Set Temp_Point2 = (Position of (Picked unit))
Set Temp_Int = (Temp_Int + 156)
Unit - Kill (Picked unit)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 400.00 of Temp_Point2) and do (Actions)
Loop - Actions
Unit - Create 1 Caster for (Owner of TempUnit2) at Temp_Point2 facing Default building facing degrees
Unit - Add zEnsnare Trap to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Crypt Fiend - Web (Picked unit)
Custom script: call RemoveLocation(udg_Temp_Point2)
Else - Actions
Do nothing
Set TempUnit = No unit
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TrapBool Equal to True
Then - Actions
Player - Add Temp_Int to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads (+ + (String(Temp_Int))) at Temp_Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for (Player group((Owner of TempUnit2)))
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Unit - Kill TempUnit2
Else - Actions
Do nothing
Set TempUnit2 = No unit
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Int = 0
Set TrapBool = False
Else - Actions
Do nothing
I'm still learning JASS, but from what I figured out, JASS might solve my problem, but this trigger is enormous and I want to make sure the conversion will even make a bit of difference, if it will I'll get to work, if it wont... well I'll still do it later.
PS. Part of it might be my computer not being perfect, other people seem to not get any pause's, but I still want to lower the lag if the possibility is open.