- Gold
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Custom script: set bj_wantDestroyGroup = true
- Unit Group - Pick every unit in (Units of type Building) and do (Actions)
- Loop - Actions
- Set Unit = (Picked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit is alive) Equal to True
- (GoldGroup is empty) Equal to False
- Then - Actions
- Player - Add 10 to (Owner of Unit) Current gold
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit is alive) Equal to False
- (GoldGroup is empty) Equal to True
- Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
Well, that is wrong Ofel, you are destroying the group by puting the variable bj true, but it will make no sense, since you still have "(GoldGroup is empty) Equal to True/False", that's why I used a variable.