Hi,
we would like to create a premium tournament system in our game. Basically it's a leaderboard, where player gain points winning game only if he has payed a buy-in price.
Let's assume that a tournament has a fixed duration: 1 day. During a day, a player can do 2 thing:
- Play for the current, running, tournament (if he has payed the buy-in the day before)
- Pay the buy-in for the next tournament and register himself for tomorrow.
We use a cycling statistic system (resetting stat every X time) in order to re-use same statistic for different tournament.
We thought about setup a PlayFab Scheduled Task that call a Cloud Script function every X time to switch tournament (archive the running one and start the next one). What about if this call fail for any reason? Has scheduled task a feature to detect that and re-run the task?
Also, every tournament switch we would like to automatically reset a statistic from an external service (like cron-job.org) calling this: https://api.playfab.com/documentation/admin/method/IncrementPlayerStatisticVersion
Here we have the same problem descrived above: what about if that call fail?
Last point: is there any kind of limit for the number of IncrementPlayerStatisticVersion that we can do?
What do you think is the best way to achieve this tournament system using PlayFab?
Thank you very much.
Best regards,
Andrea