We tried to setup a rule to call a cloud script function whenever a statistic value changes. We need this to cycle our daily/weekly/events. (We don't want to use a schedule task for this because we want to be as synchronous as possible with the statistics reset timepoint. It would add an additional source for errors when we have to maintain a scheduled task and a leaderboard reset time for each event we would to cycle).
Anyway, we setup up the rule with:
CustomAction = title_statistic_version_changed
or
CustomAction = com.playfab.title.title_statistic_version_changed
to call a cloudsript method.
Unfortunately the method is never called. Is this supposed to work at all? (or are rules for player events only?)
If not, how can we react in the cloud script on a statistic reset? (e.g. to update the title data to move on to the next event, etc...).
We would also use scheduled tasks instead of automatic resets of statistics on different time intervals. But unfortunately we can't reset a leaderboard from the cloud script. (This would be the preferred method for us, clean and straightforward).