erm hi, can anyone teach me how do i make a leaderboard, pls explain it clearly and full details like what vairbles and the trigger. cost i copy a leaderboard from some map, and the player 1 score is imbalance it jumps from 1 point to 5 point per kill.
you need an array integer called PlayerKills for my example, and a leaderboard variable called ldr
Trigger 1 -------------------------------------------------- Events Time - Elapsed Game Time is 0.01 Seconds Conditions (none) Actions Leaderboard - Clear ldr Leaderboard - Create A Leaderboard Titled Kills Set ldr = Last Created Leaderboard Player Group - Pick Every Player in ( all players ) and do actions Loop - Actions Set PlayerKills[Player Number of Picked Player] = 0 Leaderboard - Set the value for Player 1 - PlayerKills[Player Number of Picked Player]
--------------------------------------------------Trigger 2 -------------------------------------------------- Events Unit - A Unit Dies Conditions (none) Actions Set PlayerKills[Player Number of Owner of Killing Unit] to PlayerKills[Player Number of Owner of Killing Unit] + 1 Leaderboard - Set the value for Owner of Killing Unit to PlayerKills[Player Number of Owner of Killing Unit] -------------------------------------------------- thats all there is to making a simple Leaderboard ( in this case Kills )!