question

Sia Ding Shen avatar image
Sia Ding Shen asked

Reset top 10 players leaderboard only and maintain other players' statistic,Is there a way to reset the top 10 players in a leaderboard without resetting all other players statistic?

Hi, I'm trying to do a championship system similar to CATS and having some trouble implementing this system due to how the PlayFab's leaderboard reset works. For this to work, I need to get the top 10 players on the leaderboard and reset their score only, while maintaining all other players' score. Is there a way for me to do this properly using PlayFab?

Leaderboards and Statistics
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

·
Seth Du avatar image
Seth Du answered

PlayFab doesn’t support any build-in feature you have mentioned, but there are work around solutions.

For example, even though we do not suggest writing iteration codes in Cloud Script, I believe it is feasible if there are only 10 times for iteration.

  1. Write a Cloud Script to retrieve the top 10 players in the leaderboard and then reset the statistics iteratively for all of them.
  2. Configure a scheduled task at [Game Manager]->[Automation]->[Scheduled Tasks] to execute the Cloud Script function.
10 |1200

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

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.