remove_inventory()
Remove Inventory | Action ID: RemoveInventory
Remove copies of an item through the current inventory route.
| Option key / field | Meaning and accepted input | Default |
|---|---|---|
| Item itemId | Choose an inventory definition ID. | Blank |
| Count count | Number of copies or repetitions. Use a whole number. | 1 |
Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.
remove_inventory({"itemId": "key", "count": 1})In use. Remove one fuse after it has successfully been installed. Test the condition first, then remove it. Removing a missing item is not a substitute for a Has Inventory branch, and the next action in an ordinary list will still run.
change_inventory_quantity()#
Change Inventory Quantity | Action ID: ChangeInventoryQuantity
Apply a signed quantity change to an item for a character.
| Option key / field | Meaning and accepted input | Default |
|---|---|---|
| Player / Character characterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| Inventory Item itemId | Choose an inventory definition ID. | Blank |
| Change By amount | Signed quantity change: positive adds, negative removes. | 1 |
Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.
change_inventory_quantity({"characterId": "player", "itemId": "key", "amount": 1})In use. Use amount -1 to consume a battery, or +3 to grant three coins. This is a change by an amount, not an instruction to set an absolute total. Choose the same owner that the inventory GUI is displaying.
