Inventory and two-object interactions
On this page
An inventory definition describes an item. Giving an item changes a bag. Removing its scene model is a separate instruction. Decide whether the project uses shared or character-specific inventory before writing transfers.
Add Inventory#
ID: AddInventory | Shared list / GUI · Visual graph · Text action wrapper · Timeline
Add copies of an existing inventory item through the runtime's active inventory route.
| Field / stored key | What to enter | Starting value |
|---|---|---|
| Item itemId | Choose an inventory definition ID. | Blank |
| Count count | Number of copies or repetitions. Use a whole number. | 1 |
In use. Add one Archive Key after a successful pickup. This is not a command to import a model, and it does not hide the key on the workbench. Use Give Inventory in the room/object inspector when this entry is not listed there.
Give Inventory#
ID: GiveInventory | Native inspector · Shared list / GUI
Give a quantity of an item to the selected character's inventory route.
| Field / stored key | What to enter | Starting value |
|---|---|---|
| Character characterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| Item itemId | Choose an inventory definition ID. | Blank |
| Count count | Number of copies or repetitions. Use a whole number. | 1 |
In use. Choose Player, Archive Key and Quantity 1 for the pickup lesson. In character-owned inventory games, choose the intended character explicitly. A shared-inventory setting can make character ownership appear unchanged because everyone is using the same bag.
