Leaderboards
By Archian
Leaderboards are a simple way for players to keep track of their scores or points.
It's a score board which shows up in the top-right corner.
(Leaderboard)
Leaderboards can only keep track of two columns; a name and a value.
If you want multiple columns you have to make a multiboard.
However, leaderboards are a lot more simple to make.
Notice a leaderboard can't be created useing the trigger;
Map Initialization.
Use a trigger like
Time - Elapsed game time is 2.00 seconds to make the trigger.
Adjusting the Elapsed game time to 0.00 seconds would work like Map Initialization; you won't know the diffrence.
(Example of making a leaderboard)
Tally Score
A leaderboard can keep track of several different scores etc.
For instance; perhaps you'd want your board to keep track of kills like in a TD or if your playing a capture the flag game; perhaps you'd want it to keep track of flags stolen.
The board works fine with Integers, you can assign it any integer values you like.
For this tutorial, I'm going to make the leaderboard keep track of "kills".
Variable
Create a Variable to keep track of kills for each player.
Open the Variable editor and create a new Variable Type; Integer variable called PlayerKills (I call it PlayerKills).
Check the Array box to keep track of more than just one value.
Tally Trigger
You'll need a trigger to tally the score.
In this example it will keep track of kills for each player; for instance a TD.
Perhaps you might want to keep track of just
one unit's kills.
You can also add conditions to limit what kinds of kills are allowed.
(Example of the tally score trigger)
The Trigger Functions of Leaderboards
Here's a overview of the functions which are available for leaderboard triggers.
Leaderboard - Create
Creates the leaderboard. Make a main title for the leaderboard.
Leaderboard - Destroy
Destroys a leaderboard. Once destroyed, players can no longer see it.
Leaderboard - Show/Hide
Shows and hides the leaderboard.
Leaderboard - Change Title
Changes the main title of the leaderboard.
Leaderboard - Change Label Colors
Changes the color of a players label.
Leaderboard - Change Value Colors
Changes the color of a players score.
Leaderboard - Change Style
Changes the leaderboard style. You can hide the title, labels, or player values, for all players.
Leaderboard - Add Player
Adds a player to the leaderboard.
Leaderboard - Remove Player
Removes a player from the leaderboard.
Leaderboard - Change Player Label
Changes the label for a player.
Leaderboard - Change Player Label Color
Changes the color of a players label.
Leaderboard - Change Player Value
Updates the value, or score, for a player.
Leaderboard - Change Player Value Color
Changes the color of a players score.
Leaderboard - Change Player Style
Changes the leaderboard style. You can hide the labels or player values, for a specific player.