Quick post here guys working on a team project with a map that will have periodic income. The way we chose to display this income was using a custom resource. Now I'm trying to figure out how to make a Trigger that will re-occur every 10 seconds and check the custom resource and then give that amount to the play in Minerals. The re-occurring timer is easy enough and I assume the action I want is modify player property what I'm not sure on is how to write a custom script that does the rest. If anyone can give me some tips it would be vastly appreciated.
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
customResources = 0 <Integer>
Conditions
Actions
Variable - Set customResources = (Player 1 Custom Resource)
Player - Modify player 1 Minerals: Add customResources
Quick post here guys working on a team project with a map that will have periodic income. The way we chose to display this income was using a custom resource. Now I'm trying to figure out how to make a Trigger that will re-occur every 10 seconds and check the custom resource and then give that amount to the play in Minerals. The re-occurring timer is easy enough and I assume the action I want is modify player property what I'm not sure on is how to write a custom script that does the rest. If anyone can give me some tips it would be vastly appreciated.
I believe this should do what you want:
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
customResources = 0 <Integer>
Conditions
Actions
Variable - Set customResources = (Player 1 Custom Resource)
Player - Modify player 1 Minerals: Add customResources
Thanks SirLyrrad that was exactly what I need. You are awesome!