I want to grant access of an item to players who are top 10 in a specific leaderboard. My game is match based. When a match finished, I want the game to check if he/she is still Top 10. If not, the item is taken back. If someone who wasn’t top 10, after a match, he/she becomes top 10, this item is granted. How can I implement this?
I know I can use Client API to check leaderboard position. Then, grant/omit access via client logic. But I doubt this is a secure way.
Answer by Sarah Zhang · Jul 06, 2020 at 09:34 AM
PlayFab Leaderboard Prize Table can achieve your requirements. A prize table can trigger a set of actions on a group of players within a range of ranks. It can be used to grant items or execute a custom CloudScript function to implement a customized reward. Please refer to this tutorial -- https://docs.microsoft.com/en-us/gaming/playfab/features/social/tournaments-leaderboards/using-prize-tables to implement the prize table for your need.