Hey, what is the best way to update the remaining usages of an item from Azure function?
I am not sure if calling ConsumeItem 4 times is a waste of resources and calls
As you mentioned, players can call API ConsumeItem to decrease the remaining usage of consumable items. Or you may also consider use API ModifyItemUses to modify the number of remaining uses of player's inventory item via Azure Function, this allows you to update (Increase or decrease) the remaining usage of consumable items. In addition, if you want to modify the remaining usage of the same ItemInstanceId item, you can specify the number of changes via setting the parameter “UsesToAdd” or “ConsumeCount”. If you want to modify the remaining usage of the different ItemInstanceId items, then you need to call multiple APIs, and each API request modifies one instance item.
51 People are following this question.