Hello,
I have the following need:
Players in our game can make decisions throughout their gameplay experience and we want to be able to show to every single player, at arbitrary times, how many other players made the same choice as them.
So far, I thought I could manage the entire thing using Player Statistics and Leaderboards as such:
One given decision will have multiple possible Choices. Each choice generates a PlayerStatistic and sends a value of 1. The other choices won't have a value for the same player (this is not ideal but is a limitation based on other tools we are using in our game, I had to do it that way). When retrieving the Decision, I was going to request the leaderboards of every single choice, calculate the total entries and then divide by how many each leaderboard had, giving me a percentage that picked a certain Choice.
It would seem I was wrong for the following reasons:
- When retrieving a Leaderboard, there is, at no point at all in the Result, any information on what Leaderboard was requested. That prevents me from knowing which request returned success and treat information properly (because I need multiple requests, 1 per possible choice at any given decision)
- Leaderboard requests seem to only yield a maximum of 100 results which is clearly not enough for my current need
- There are no simple requests to query how many people have a value for a given Statistic. I realize why, in the current state, it doesn't exist, since leaderboards are meant to have a value (at least a default one), for every player, but it makes it very specific when it could be a very generic tool
So can anyone think of another feature in PlayFab that would allow me to achieve that please?
Thank you very much for suggestions!
Best regards,
Tom G