I have 40 levels in my game and I want to add 3 achievements for each level in UserReadOnlyData. The key/value pairs should be created when the player creates his account. After the player finished a level, I will check if he has reached the achievements of the current level.
I want to add the achievements(120 key/value pairs) with server API UserReadOnlyData in CloudScript:
server.UpdateUserReadOnlyData({ PlayFabId: currentPlayerId, Data: { // Level 1 achievements: "Finish_level_1": "false", "Defeat_all_enemies": "false", "Minimum_obtained_points": "2000", // Level 2 achievements: "Finish_level_2": "false", "Minimum_collected_gems": "5", "Minimum_obtained_points": "3000", // Level 3 achievements ... }, Permission: UserDataPermission.Public });
I found out that the limit for Player data updates per request is 10 key/value pairs in a single request. What is the best way to create the achievements in UserReadOnlyData if I cannot update more than 10 key/value pairs in a single request?
Is it necessary to make 12 request if I want to create 120 key/value pairs?