I've followed the guide on setting up Leaderboards in Unity and have it working now with updating a 'score' attribute. However, for our game we also want to store information about what level the user was at, at the time of setting the high score. I thought I could do that with making a 'level' attribute in my Post Score event and setting its Default Calc to 'Last'. This does work as long as the user set a new high score, but the 'level' attribute (a long with everything else) is being updated every time I call the event, which means that if users level up, their leaderboard entry will be updated with their new level next time they set a score, even if this score was not higher than the one already in the leaderbord. Is there some way of setting up a condition that makes leaderboard data only update if a given attribute fulfils a given criteria. All I want is to be able to check if the new 'score' would result in a high score and if it does, then I want to set all the other data. If not, nothing should happen.
Sounds like Partitioned Leaderboards might be the solution you're looking for.
Have a look at that tutorial and let us know if you need any help.
Sorry Heino, actually it sounds like you are looking for a new leaderboard attribute type.
We're planning this in an upcoming release.
I can update you when this feature is ready if you like?
The first number would be the level and the second number would be whether to get that partition or not (1 meaning yes, 0 meaning no). I'm just not very skilled with Cloud Code yet, so I don't know how to query the JSON request through Cloud Code and then get the Leaderboard data for the given levels. Is this even possible?