Skip to reading
Eight Adventure Interface Workshops

Switch characters or pass an item

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 portrait can switch control. A transfer-aware portrait needs a small script instead.

For simple switching, use the Button’s Switch Character behavior. For the DOTT-style “selected item onto portrait” shortcut, use transfer_to_mara from Chapter 12 on Mara’s portrait.

Source table from Switch characters or pass an item, page 38
Player statePortrait result
No item selectedSwitch to the chosen character.
An item selectedTransfer one unit from the current character to the recipient. Keep control of the current character.
Transfer forbiddenKeep the item and provide feedback appropriate to the puzzle.
Character unavailableDisable or hide the portrait until the story unlocks it.

Create a separate script or recipient parameter for each portrait. Do not paste the same Mara recipient into every Button. If a puzzle requires a transfer machine or a story condition, check that condition before Transfer Inventory.

The original’s time-travel rules belong to its story. Your own transfer shortcut should follow your game’s rules, rather than moving every item anywhere without a check.

Page 38 of 119Permalink
Go to page