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.
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.
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.