Hi, I'm trying to implement item upgrades in my game project, the way I'm going to do it is by defining the upgrade costs and requirements as part of that item's data in the catalog, then whenever the player needs to upgrade an item they would send a cloud Script Execution request to the server passing in the item instance data, from there on the game would need to perform these Server-Side PlayFab API Calls: - Retrieve the upgrade costs and requirements. - Retrieve the player's inventory to check that the player is capable of performing the upgrade. - Deduct the upgrade cost and remove any items required for the upgrade from the player's inventory. And at the end that upgrade API function would need to return a response detailing the result of the operation. I'm unsure how this approach can be implemented within cloud Script, can I simply wait for one API call to complete and then progress with the next one up until I have all the information I need to process the upgrade operation and then return the response all from within the upgrade API function ? Wouldn't that effect my 1 second of CPU allowed for cloud scripts ? Would I have to implement multiple cloud functions and then progress through them from the client ? Or what would be the best way to implement this functionally ?
Thank you.