I have items assigned to my players' inventory, each item has custom data like slotID and ContainerName. Users can organize their inventory by changing these fields. I would like to give users permission to modify only the personalized data for these items. Is this possible?Thanks.
Answer by Sarah Zhang · May 19, 2021 at 06:19 AM
PlayFab only provides the permission to the server to modify the inventory item custom data. In your case, you can call Server API UpdateUserInventoryItemCustomData on the CloudScript, then let players call the API ExecuteCloudScript to invoke the CloudScript function. Please check the tutorial -- Writing custom CloudScript - PlayFab | Microsoft Docs for the details of how to write the CloudScript and how to call the API ExecuteCloudScript on the client. If you have any trouble using the CloudScript, please feel free to let us know.
Perfect, it worked like a charm!I did not know this feature and I must say that it is great.Thanks!
Is there a way to search for only Players that have a Custom Identification in their profile? 1 Answer
Player Data Backup & Reroll capability 1 Answer
Player Data Value Size is zero,Player data value size is zero 1 Answer
What is the name of the data point relating to a user's session? 1 Answer
About player search 1 Answer