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.
Untitled Trigger 001

Events


Time - Elapsed game time is 1.00 seconds

Conditions

Actions


For each (Integer A) from 0 to -1, do (Actions)



Loop - Actions




Wait 30.00 seconds




Set tempgroup = (Units owned by Player 1 (Red) of type Footman)




Unit Group - Pick every unit in tempgroup and do (Actions)





Loop - Actions






Player - Add 1 to Player 1 (Red) Current gold




Custom script: call DestroyGroup( udg_tempgroup )
Why don't you use as Event every 30 seconds and cut out the wait?that should work
Untitled Trigger 001
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
For each (Integer A) from 0 to -1, do (Actions)
Loop - Actions
Wait 30.00 seconds
Set tempgroup = (Units owned by Player 1 (Red) of type Footman)
Unit Group - Pick every unit in tempgroup and do (Actions)
Loop - Actions
Player - Add 1 to Player 1 (Red) Current gold
Custom script: call DestroyGroup( udg_tempgroup )
Speaking of polled wait, could you link me to a tutorial for them as I'd like to try it out D:well, if you use trigger sleep action by itself, about 1.5-3 times longer in multiplayer. Polled wait is a lot more accurate as it syncronizes with a timer thus its like only 0.5 seconds off.
Events

Time - Every 30 seconds.
Conditions
Actions

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Playable map area) matching (Matching unit equal to (Footman))


Loop - Actions



Player - Add 1 to (Owner of (Picked unit)) Current Gold
Actions

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Units of type foot small) and do (Player - Add 2 to (Owner of (Picked unit)) Current gold)

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Units of type foot) and do (Player - Add 3 to (Owner of (Picked unit)) Current gold)

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Units of type Foot big) and do (Player - Add 4 to (Owner of (Picked unit)) Current gold)
Actions

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Units of type foot small) and do (Player - Add 2 to (Owner of (Picked unit)) Current gold)

Unit Group - Pick every unit in (Units of type foot) and do (Player - Add 3 to (Owner of (Picked unit)) Current gold)

Unit Group - Pick every unit in (Units of type Foot big) and do (Player - Add 4 to (Owner of (Picked unit)) Current gold)