How can I increase the player statistics of a player with only calling the cloud scripts once?
Is it possible to Update Player Statistics by a specific amount without first getting them?
How can I increase the player statistics of a player with only calling the cloud scripts once?
Is it possible to Update Player Statistics by a specific amount without first getting them?
Sure, all you have to do is to set that statistic’s aggregation method as Sum in the “Edit Leaderboard” panel via Game Manager:Or, you can do it through the Admin/UpdatePlayerStatisticDefinition API.
Next time you call Server/UpdatePlayerStatistics via CloudScript to update that statistic for the player, it will get increased instead of replaced.
Is it possible to reset a Sum statistic then through CloudScript or automation not based on a fixed time, but on an event?
Because setting a value of 0 would just not sum anything I guess, right?
Of course, you can use Playstream Rules react to PlayStream events in real time. Please check this doc:https://docs.microsoft.com/en-us/gaming/playfab/features/automation/actions-rules/
4 People are following this question.