Yea already done that.. but the actions... I don't know what should i do next..
@Baskey
Do not use integer A / B
They are slower and less efficient than using a Temp Integer.
Take a look at my tutorial things a GUIer should know.
Also you are leaking player groups.
Figured. I really need to stop making triggers before the evening, I always forget simple stuff like that.
@OP You can indeed use a Temp Integer or Integer A/B, I just feel like Integer A is easier to understand for new people and the only difference is efficiency and speed, but that will 90% of the time be of no issue whatsoever.
For the leak, change the income trigger to:
Sorry for giving you a leaking trigger (dafuq, brain D
Income
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set TempPlayerGroup = (Player group((Player((Integer A)))))
Game - Display to TempPlayerGroup the text: (Your income is + (String(Income[(Integer A)])))
Player - Add Income[(Integer A)] to (Player((Integer A))) Current gold
Custom script: call DestroyForce(udg_TempPlayerGroup)
![]()
this is a really quick job but will work
Untitled Trigger 002
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Custom Script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Farm)) and do (Actions)
Loop - Actions
Player - Add 1 to (Owner of (Picked unit)) Current gold