transfer_inventory()
Change Inventory from Player to Player | Action ID: TransferInventory
Move a quantity from one character's inventory to another.
| Option key / field | Meaning and accepted input | Default |
|---|---|---|
| From Player fromCharacterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| To Player toCharacterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| Inventory Item itemId | Choose an inventory definition ID. | Blank |
| Quantity 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.
transfer_inventory({"fromCharacterId": "", "toCharacterId": "", "itemId": "key"})In use. Transfer the key from Ivo to Elias in a game with individual bags. Check the source character and quantity before playing a handover animation. Changing which character is controlled is not the same thing as transferring an item.
