Hi,
Have been having trouble trying to store some Character Statistics. So what I understood from the doc is the Character Stats are also leaderboard values, and have went ahead to create a "UnitLevel" leaderboard value that will be used.
What I couldn't achieve is to create/update those Characters Stats.
So here's how my code looks
var updateCharStats = server.UpdateCharacterStatistics ({ PlayFabId : currentPlayerId, CharacterId : "inputCharID", CharacterStatistics : [ {Statistics:"UnitLevel", Value:1}, ] });
But it does not update the Character Stats.
Then I though it could be just Statistics instead of CharacterStatistics,
var updateCharStats = server.UpdateCharacterStatistics ({ PlayFabId : currentPlayerId, CharacterId : "inputCharID", Statistics : [ {Statistics:"UnitLevel", Value:1}, ] });
Which didn't work as well.
And in the docs it states the CharacterStatistics field is an object, so I tried this
var updateCharStats = server.UpdateCharacterStatistics ({ PlayFabId : currentPlayerId, CharacterId : "inputCharID", Statistics : [ {"UnitLevel",1}, ] });
And it also didn't work.
Would be great if the docs had a template for "visualizing" how it should be written.
Also, I could do with some assistance on getting this to work.
Thanks!