Events:
Time - Every 8 seconds
Conditions:
Actions:
Set TempGroup = Units of type sheep matching condition (matching unit is alive)
Unit group - pick every unit in TempGroup and add 1 gold to owner of (picked unit)
Custom Script: call DestroyGroup(udg_TempGroup)
Edited for trigger tags (NB: this is typed up, rather than copy and pasted).