- Joined
- Jan 1, 2005
- Messages
- 133
ive started some beta testing of my sc maps and ive come accross some very bad lag issues when playing a protoss and i think its due to the new shield trigger ive new added.
Now ive done a leak check and its come up with 0 leaks but i think the trigger is creating lag by other means not due to leaks. If anyone knows what i need to do please let me know asap.
heres the trigger as it is.
Now ive done a leak check and its come up with 0 leaks but i think the trigger is creating lag by other means not due to leaks. If anyone knows what i need to do please let me know asap.
heres the trigger as it is.
-
Self Shield
-

Events
-


Time - Elapsed game time is 2.00 seconds
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Nexus (1)
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,750,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Nexus (2)
-
-



Then - Actions
-




Wait 120.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,750,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Pylon
-
-



Then - Actions
-




Wait 30.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,200,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Assimilator
-
-



Then - Actions
-




Wait 40.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,250,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Gateway
-
-



Then - Actions
-




Wait 60.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,500,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Cybernetics Core
-
-



Then - Actions
-




Wait 60.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,550,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Forge
-
-



Then - Actions
-




Wait 40.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,550,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Photon Cannon
-
-



Then - Actions
-




Wait 50.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,125,-1,0,1,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Citadel of Adun
-
-



Then - Actions
-




Wait 60.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,450,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Stargate
-
-



Then - Actions
-




Wait 70.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,600,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Robotics Facility
-
-



Then - Actions
-




Wait 80.00 seconds
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,450,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Probe
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,20,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Carrier
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,150,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Observer
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,40,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Vindiccator
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,90,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Scout
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,100,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Dark Templar
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,80,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Zealot
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,60,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Dragoon
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,80,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Shuttle
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,60,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Reaver
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,80,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Entering unit)) Equal to Protoss Interceptor
-
-



Then - Actions
-




Set guy = (Entering unit)
-




Custom script: call CreateShieldEx(udg_guy,40,-1,0,0.44,0,"|cFF3232FF",true)
-
-



Else - Actions
-




Do nothing
-
-
-


-------- CreateShieldEx takes unit target, real shieldhp, real duration, integer buffId, real regenerate, real armor, string color, boolean dmgspill --------
-


-------- Target = Guy --------
-


-------- Shield Hitpoints = 300 --------
-


-------- Duration = -1 (Indestructable) --------
-


-------- Buff = None (not using buff cuz shield is indestructable) --------
-


-------- Regeneration = 3 HP per second --------
-


-------- Armor = 0 (reduce 0% dmg taken) --------
-


-------- Color = |cFF3232FF (Blue) --------
-


-------- Damage Spill = Yes --------
-
-
Last edited:





