The map has no mines nor forests.
What it does have is buildings, as you control the buildings you gain more resources per tick.
What I have not been able to figure out is, how to check who owns the building during that tick, and give the resources to the player.
So if the player owns 1 node, they get 10 gold / lumber every 10 seconds. If they own 3 nodes, 30 gold / lumber.
[edit]
Ok I figured out one way to do it... if you know an easier way please let me know.
Make a Trigger if a unit moves into a region, the building becomes owned by the player.
A timer, that every 10 seconds, they get resources if they own that building.
1 Trigger to control the distributing of resources But 2 actions per building in the trigger.
And 1 Trigger for every building to take control of it.
No comments:
Post a Comment