mmm
Code:
Add Farm
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Resource House
Actions
Unit Group - Add (Constructed structure) to Unit_Group
Set Player = (Owner of (Constructed structure))
Trigger - Turn on Income
Code:
Remove Farm
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Resource House
Actions
Unit Group - Remove (Dying unit) from Unit_group
Code:
Income
Events
Time - Every 9.00 seconds of game time
Conditions
Actions
Player - Add (5 x (Number of units in Unit_Group)) to Player Current gold
Player - Add (7 x (Number of units in Unit_Group)) to Player Current lumber
Income isn't initially on
Player is a player variable
and
Unit_Group... is a unit group variable
hope this helps.