Can a ModifyItemUses call be used to modify item uses in the character inventory?
The call fails with "InvalidItemProperties: Unable to find item with id 3510550183672790558". I'm doing this call from cloudscript:
server.ModifyItemUses({
PlayFabId: currentPlayerId,
ItemInstanceId: "13AD7DC8C97EB66E",
UsesToAdd: -1
});
A users character has an inventory item with the same ItemInstanceId.
This is the item's definition:
{
"ItemId": "extra_gold",
"ItemClass": "perk",
"CatalogVersion": "perks",
"DisplayName": "Bonus Gold",
"Description": "Cha-ching! More gold when a monster drops dead!",
"VirtualCurrencyPrices": null,
"RealCurrencyPrices": null,
"Tags": [],
"CustomData": "{\"extra_gold\":\"1\"}",
"Consumable": {
"UsageCount": 1,
"UsagePeriod": 1,
"UsagePeriodGroup": "perk"
},
"Container": null,
"Bundle": null,
"CanBecomeCharacter": false,
"IsStackable": false,
"IsTradable": false,
"ItemImageUrl": null
},