hey i fixed all leaks for the system
http://www.hiveworkshop.com/forums/spells-569/afk-protection-1-0-auto-start-1-0-ease-1-0-a-241757/?prev=r%3D20%26page%3D2, to my knowledge..
and optimized it
i'm not sure if this is a bit too mush.. - since i heard that you don't want to "pick every unit in (playable map)" and choose a unit group instead, so i could cut the action "custom script: call DestroyGroup(udg_GroupVar)" since i already used "Custom script: set bj_wantDestroyGroup = true", right?
anyway thanks in advance
i will back in a few hours and work on my other spell Auto-retraining, that one certainly still needs some fixes
Auto Start
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Set GroupVar = (Units in (Playable map area))
Unit Group - Pick every unit in GroupVar and do (Actions)
Loop - 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 Peon
(Unit-type of (Picked unit)) Equal to Peasant
(Unit-type of (Picked unit)) Equal to Acolyte
(Unit-type of (Picked unit)) Equal to Wisp
Then - Actions
Unit - Order (Picked unit) to Harvest Nearby Gold
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Ghoul
Then - Actions
Unit - Order (Picked unit) to Harvest Nearby Lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Town Hall
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Peasant
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Great Hall
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Peon
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Necropolis
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Acolyte
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Tree of Life
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Wisp
Else - Actions
Custom script: call DestroyGroup(udg_GroupVar)
Custom script: call DestroyTrigger(GetTriggeringTrigger())