Then I also need help with a income system that does following (as an example):
Making a unit -> adds 2 minerals (to income) -> Adds to leaderboard and you get income each 30 sec
If anyone could help me out a little here, I would appreciate it very much :)
Maybe post screenshots of the triggers or upload a map with the triggers.
Would make it very simple for me. Thanks! :)
It kind of depends on what you are trying to do. Are you trying to increase income permanently or only while the created unit is alive?
Increasing income permanently is the easier of the two. You would do something like this:
Create a trigger using the Unit Is Created event. Apply conditions as needed. Then add <income increase amount> to a global variable. I presume that each player will have an independent income rate, so your global variable would have to be a real array of size <max number of players in game + 1.>
Create another trigger which handles income ticks. For example, you might use a Periodic event every 10 seconds. Then you simply pick each player in the game and add <global real array[picked player]> minerals.
The leaderboard would need to reference your global real array.
So I want help with a little thing here, First of all I need a leaderboard that got 10 players on, that updates the players incomes.
Then I also need help with a income system that does following (as an example):
Making a unit -> adds 2 minerals (to income) -> Adds to leaderboard and you get income each 30 sec
If anyone could help me out a little here, I would appreciate it very much :)
Maybe post screenshots of the triggers or upload a map with the triggers.
Would make it very simple for me. Thanks! :)
It kind of depends on what you are trying to do. Are you trying to increase income permanently or only while the created unit is alive?
Increasing income permanently is the easier of the two. You would do something like this:
Create a trigger using the Unit Is Created event. Apply conditions as needed. Then add <income increase amount> to a global variable. I presume that each player will have an independent income rate, so your global variable would have to be a real array of size <max number of players in game + 1.>
Create another trigger which handles income ticks. For example, you might use a Periodic event every 10 seconds. Then you simply pick each player in the game and add <global real array[picked player]> minerals.
The leaderboard would need to reference your global real array.
@BasharTeg: Go
Thank you for the answer.
But can you take some screenshots of it? Since I am getting stuck here. :S