question

mihadelo avatar image
mihadelo asked

Get Leaderboard players by value range

Hello, is it possible to get players on leaderboard based on statistic range value?

Similar as GetLeaderboard(), with min-max and max results.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

No, unfortunately, there's no way to predict how many players that could be, so there's no way we could guarantee we could return all of them. What is the specific gameplay feature you're attempting to enable, though? I'm sure we can find a way to get you the tools you need for the player experience you have in mind.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mihadelo avatar image mihadelo commented ·

Idea in game is to get 3 displayed leaderboards based on their score for example:

max - 10000

10000-1000

1000-0

and get 10 top players in each group.

On server side i would like to use 1 leaderboard, it is same game.

0 Likes 0 ·
brendan avatar image brendan mihadelo commented ·

If you have specific scores you want to use as the cut-off, you would need to use separate statistics. So, using your example, report any score up to 1000 to statistic A, from 1001 to 10000 to statistic B, etc. That way, you could query for the top to from each.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.