Give the cabinet two answers
TUTORIAL 05 • SCENE DESIGNER / INVENTORY ACTIONS
A wrong guess can help a player. If Bea tries the token in the sorter, she learns where else to try it. If she brings the flat plate, the machine accepts it.
1 In Adventure Database › Variables, add these four records. A Boolean is a yes/no answer. A Number lets the machine count correct buttons. Use the IDs exactly as shown. Turn off Leave Blank At Start. For false, leave Initial Boolean Value unchecked. Apply each record.
| Variable ID | Type | Start | What the game remembers |
|---|---|---|---|
| plate_fitted | Boolean | false | The flat plate is in the cabinet. |
| dispatch_ok | Boolean | false | Gus heard the route. |
| sort_step | Number | 0 | Correct buttons in this attempt. |
| pickup_done | Boolean | false | The last load has gone out. |
2 Open Service Yard › Yard sorter › Inventory Actions. Click Add Inventory Interaction. Allow only Token. Its one result is Show Message: “Round token. Flat slot. Try the token on the hanging tag.”
3 Click Add Inventory Interaction again to make a separate rule. This time allow only Claim plate. Enter the three result steps below under this second rule. Use Add Next Action to add steps 2 and 3, then Apply Changes.
| Step | Result action | Value |
|---|---|---|
| 1 | Set Variable | plate_fitted = true |
| 2 | Remove Inventory | Claim plate, count 1 |
| 3 | Show Message | Plate seated. Dispatch needs Gus on the Lobby radio. |
Try it in play. Select Use if you are using the verb buttons. Click the Token in the bag, then the sorter. Next use the Token on the hanging tag. Finally use the new Claim plate on the sorter. The tag should be gone and Bea should have one Token left.
PCA 3D Adventure Studio / 7
