question

Kim YongSik avatar image
Kim YongSik asked

How can I reset leaderboard or set all players value to 0?

1 comment
10 |1200

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

Kim YongSik avatar image Kim YongSik commented ·

Use leaderboards named 'boardA', 'boardB' ....

And set Aggregation method to 'Sum (add this value to existing value)'.

For example, 20 player add score at boardA.

After a certain amount of time, top 5 player move to boardB.

I want remove top 5 player from boardA or set value to 0

How can i do it?

0 Likes 0 ·

1 Answer

·
Rick Chen avatar image
Rick Chen answered

To reset a leaderboard, you can go to the leaderboard's edit page on Game Manager and choose "Reset now", or call the IncrementPlayerStatisticVersion API. This removes all player entries of the corresponding statistics. If you only want to reset a part of the players' statistic, you need to update their statistics on Game Manager or call UpdatePlayerStatistics API one by one for each specific player.

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.

Kim YongSik avatar image Kim YongSik commented ·

Sorry. I accidentally registered without writing the content.

I use leaderboards named 'boardA', 'boardB' ....

And set 'Aggregation method' to 'Sum (add this value to existing value)'.

For example, 20 player add score at boardA.

After a certain amount of time, top 5 player move to boardB.

I want remove top 5 player from boardA or set value to 0

I've given 20 player as an example, but the number will be higher.

How can i do it?

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Kim YongSik commented ·

As I mentioned, if you want to set the statistics for only a part of the players (not all players), you may need to update their statistics on Game Manager or call UpdatePlayerStatistics API one by one (set value to 0) for those players.

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.