Good morning,
I have read all te docs regarding Leaderboards and tried all the tutorials and whatnot. Everything works fine and I do know how to setup Leaderboards, reset them, use Prize Tables to reward the players.
BUT
Let's say that a Player takes part to a weekly event, and ranks high enough to win a prize. Such player for some reason stops playing the day before the weekly leaderboard ends, and then logs in again a couple of weeks (and leaderboard versions) later.
What is the best way to let them know that two weeks ago they ranked well in the now rchived leaderboard and that they won a specific price (e.g. a container that has been downloaded for them as part of their inventory)? I want to show a popup that says: "Congratulations! In the {LEADERBOARD_ID} you ranked {RANK} thus you got a {ITEM_ID}".
Right now the player would have the ITEM_ID in their inventory, but the connection between the leaderboard and the item is missing.
Storing leaderboards data in the item's payload would require a new set of items for each leaderboard, which is probably not what we want to do, especially on a weekly basis - most of the prizes would be "re-used" week after week and we would have to duplicate them just to set a different payload...
Or we would store leaderboard rewards info in the player objects: resetting the leaderboard will trigger a cloudscript that for each player would add the reward and leaderboard details in a list, and the player would get that list at startup (we already have other objects so it would be perfect). This way they would know which of their inventory item instances belong to which leaderboard as reward, and we would call another cloudscript to redeem such reward. The cloudscript will in turn unlock the container and remove that reward from the player's list.
BUT MAYBE
there is a better approach, or a built-in way or a suggested flow that PlayFab considers better to handle this scenario?
Any ideas?
Thanks in advance!