修改物品使用次數
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Modifies the number of remaining uses of a player’s inventory item
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| InvalidItemProperties | 1091 |
| NoRemainingUses | 1062 |
| ProductDisabledForTitle | 1609 |
授權
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
主體
This function can both add and remove uses of an inventory item. If the number of uses drops below zero, the item will be removed from active inventory.
This function can both add and remove uses of an inventory item. If the number of uses drops below zero, the item will be removed from active inventory.
Unique instance identifier of the item to be modified.
PlayFab unique identifier of the user whose item is being modified.
Number of uses to add to the item. Can be negative to remove uses.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
相關主題
使用玩家物品欄player_consumed_itemcharacter_consumed_itemplayer_inventory_item_addedcharacter_inventory_item_added