I need to Increment Player Statistic Version when a player reaches the maximum game score, I need to increment the version to reset that all the player's score values.
Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
You can click “Reset Now” button in the leaderboard web page of Game Manager to reset the leaderboard. Otherwise you can call Admin API IncrementPlayerStatisticVersion to reset it.
I want that the player device when reaches the maximum game score to increment the player statistic version. I don't want to be checking everyday when that happens and do it my self. I know how to detect when one of the players reaches the maximum score, but i don't know how to increase the version at that moment via scripting.
Cloud Script doesn't support Admin API and actions can be done by Game Manager is via Server API. Your requirement will need an external agent server, where PlayFab SDK is implemented to call Admin API IncrementPlayerStatisticVersion. I believe a work around solution is when a player's statistic reaches the maximum value and is updated successfully via Cloud Script, a custom event will be generated. Meanwhile, you need to enable PlayFab Webhook to redirect all events to your agent server, where this custom event is monitored as a trigger of IncrementPlayerStatisticVersion API call.
3 People are following this question.
Json problem with Playfab and unity 2019.2
Pledging custom data to leaderboard
Players cheating in my leaderboard!
leaderboards and up-to-date usernames
Reset leaderboards via script