question

jperal avatar image
jperal asked

How to implement a resetable Characters Leaderboard ?

I have created a "HourScore" statistic from GameManager->Players->Leaderboard, that should reset every hour.

In the client side I'm using GetCharacterLeaderboardRequest, and I'm getting the leaders list properly, but the score is never reseted.

Even if I manually reset the leaderboard, I still get the historic scores.

This seems to work if I use a GetLeaderboardRequest (but our game is multiprofile, we need to use characters)

What Im doing wrong? Do I need to create those leaderboards some other way around?

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

Leaderboard versioning (resets) is currently implemented for Player statistics, but not Character statistics (as indicated by the naming convention - IncrementPlayerStatisticVersion). For now, we would recommend using Player Statistics for any case where you need a resetting statistic. If you have a requirement for resetting Character statistics, can you email your title details and use case to us at devrel@playfab.com?

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.

jperal avatar image jperal commented ·

Thanks for the info! Our game is multi character, you can have up to three "Careers" or "Profiles".

Can we reset the Character Stadistic our selfs from CloudScript? Should we just create a "Player" for each "Profile"?

0 Likes 0 ·
brendan avatar image brendan jperal commented ·

Currently, we don't support resetting character statistics - only player statistics. So right now, yes, I would have to recommend using player statistics for each. Again though, if this is key to your title, having the information on your title, your publisher, and your use case would be very helpful as it would allow us to add all of that to our issue tracking, for future sprint planning.

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.