okay. creating the leaderboard is actually easier than most people think. and the kill thing should be quite easy. this however, requires more than one trigger (you probably figured that out by yourself anyhow). So here is the first step. Create two interger variables for each player and name them like "PlayerXKill"/"PlayerXTotalKill", and insert the number of the player where X is. (EX: Player 1(red) will be Player1Kill) After you create the variables, create this trigger:
Event: elapsed gametime is 5 seconds(or whatever you want the event to be, but i believe leaderboards cannot be displayed at map initialization)
Condition: none
Action:
Leaderboard - Create (and name the leaderboard)
Leaderboard - Add Player (And add each players on the leaderboard and make labels (what their name will be. it can simply be player number) and make the values PlayerXTotalKills, corresponding to each player.)
Leaderboard - Show/Hide (set to show the last created leaderboard.)
the function of this trigger is to initially start a leaderboard. after you create that trigger, create this trigger for the kills updated.
Event: Unit - A unit dies
Condition: None
Action:
If/Then/Else/Multiple Functions:
-Condition: Player Comparison - set it to
Owner of the Killing Unit equals Player Red)
-Then Actions:
--If/Then/Else/Multiple Fuctions: (embed another if/then function)
---Condition: Integer Comparison - Player1Kill is less than 5
---Then Action:
----Set Variable - Set Player1Kill = Player1Kill+1 (Do this by function: arithmetics)
----Set Variable - Set Player1TotalKill = Player1TotalKill+1
---Else Action:
----Set Variable - Set Player1Kill = 0
----Set Variable - Set Plyaer1Kill = Player1Kill+1
----Player Property - Add 1 gold to Player 1's current gold
----Set Variable - Set Player1TotalKill = Player1TotalKill+1
***Repeat this whole action shown above for each player***
That's the second trigger. The purpose of this trigger is to give 1 gold per five kills using PlayerXKill integer, and to keep track of all the kills with PlayerXTotalKills. Hope I didn't lose you yet. Here's the final trigger:
Event: A Unit Dies
Condition: None
Action:
Wait 2 Seconds
Leaderboard - Change Player Value: Change the value of player 1 in last created leaderboard to Player1TotalKill (And repeat this action for each player)
The point of the last one was to update the kills, and is triggered when an unit is killed. I have not tested any of this, but I think they should work fine. If there's problems, post a message here, or PM me. Good luck
-Blue