I think I'm getting what he's saying.
Here's what I understand it to be, and how to add it.
Every 20 seconds, the game gives a player 100 gold for each 'Oil Well' he controls. Then it displays exactly how much gold he just got (not how much he currently has)
The best way, I see, is to alter the variable function into an array equal to the number of players.
After every 20 seconds..
Set Variable gold = 100
Set Variable count(1) = 0
Set Variable count(2) = 0
Pick every unit of type 'Oil Well' and
Set Variable gold(player number of owner of picked unit) = count(player number of owner of picked unit) + gold
Pick every player and
Set Picked Player's current gold to Picked Player's current gold + count(player number of picked player)
Show Text Message to (picked player) "Your gold income is " + String(count)
If you add more players, just increase the size of the array, and add more 'Set Variable' to the beginning..
If the player number is pretty large, like 8, then use a loop fuction that sets all of them to 0. |