9. Add, remove and transfer items
Figure 19. A visual script can give an item using the same shared action system as a Button or action list.
| Action | Useful fields | Typical use |
|---|---|---|
| Give Inventory | Character, Item, Count | Give a named playable character an item. |
| Add Inventory | Item, Count; optional characterId | Give the active player an item through the runtime action API. |
| Remove Inventory | Item, Count; optional characterId | Consume, trade or take away a carried amount. |
| Change Inventory Quantity | Character, Item, Change By | Increase or decrease a stack. |
| Change Inventory from Player to Player | From Player, To Player, Inventory Item, Quantity | Transfer an item between playable characters. |
Select the exact action in the action editor and fill its displayed fields. Shared action labels can differ from their script names; Change Inventory from Player to Player is TransferInventory in source.
Give a stack of oil, then inspect it in a running game. The designer’s sample list is not a live readout of what your last test run collected.
