Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Global highscores

Asked by
TomsGames 225 Moderation Voter
10 years ago

Hey!

So I've been contemplating this for a while.. But I want to add a global highscore to my game.

I have no solution to how I can do this.

Is there some sort of method to iterate through a data store reading all values and then ordering them? (The reading through the values is what I will struggle with).

Any assistance to this problem will be highly appreciated!

0
Do you only want the highest score or a complete list (leaderboard)? jobro13 980 — 10y
0
A complete list. :) TomsGames 225 — 10y

1 answer

Log in to vote
4
Answered by 10 years ago

Use an Ordered Data Store to get the highscores, assuming that the player's scores are all in one 'PointsStore', or something similar, as opposed to a per-player store. Read more about Ordered Data Stores here.

0
Will every player need to start over again, with points and that? TomsGames 225 — 10y
0
What do you mean? Articulating 1335 — 10y
Ad

Answer this question