- Joined
- Jul 22, 2012
- Messages
- 72
Ok I have a trigger that works fine and dosn't leak but every minute when u get you income It laggs, is there anyway I can fix this? (I have about 60 points that give u gold per min, and I need them all in my map)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Ok I have a trigger that works fine and dosn't leak but every minute when u get you income It laggs, is there anyway I can fix this? (I have about 60 points that give u gold per min, and I need them all in my map)
WHATEVER NAME THIS TRIGGER IS

Events


Map Initialization

Conditions

Actions


Custom script: set bj_wantsDestroyGroup=true


Unit Group - Pick Every Unit in (Playable Map Area) Matching ((Unit Type of (Matching Unit))Equal to(Unit type ____))) And Do Actions)



Loop - Actions




Trigger - Add to ____ The Event(Unit -(Picked Unit) Takes Damage)
YOUR NEXT TRIIGER

Events


Unit - _______ Life becomes less then 0.00

Conditions


(Life of _______) Less than 50.00

Actions


Unit - Change ownership of _____ To (Owner of damage sorce)) and Change Color


Unit - Set life of _____ to 100.00%
Has an O(n) complexity. Do what I said and it will be solved.Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Gilneas/30g a min)) and do (Actions)