Skip to reading
Save Games & Inventory

9. Add, remove and transfer items

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 19. A visual script can give an item using the same shared action system as a Button or action list.

Source table from 9. Add, remove and transfer items, page 29
ActionUseful fieldsTypical use
Give InventoryCharacter, Item, CountGive a named playable character an item.
Add InventoryItem, Count; optional characterIdGive the active player an item through the runtime action API.
Remove InventoryItem, Count; optional characterIdConsume, trade or take away a carried amount.
Change Inventory QuantityCharacter, Item, Change ByIncrease or decrease a stack.
Change Inventory from Player to PlayerFrom Player, To Player, Inventory Item, QuantityTransfer 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.

Page 29 of 96Permalink
Go to page