Hello,
Is there a way to grant same stackable items to a player in once call? In our game the players can buy the same item up to 5 times. To not click the buy button 5 times, there is an input field in the game and the players can decide how many of those is going to buy. Currently, I made a loop in Cloudscript, but that calls the same API more than 1.
EDIT: I can't use bundles because there are more than 1 items like this in the game. I'm also thinking of making the items not stackable and make an item custom data that represents how many instances the player has
//... checking 'args' to see if the parameters are correct var newItems = []; for(var i = 0; i < parseInt(args.Amount); i++) { var newItem = { "PlayFabId": currentPlayerId, "CatalogVersion": "Items", "ItemIds": args.ItemId }; newItems.push(server.GrantItemsToUser(newItem)); } //...