Skip to reading
Text & Sierra-Style Adventures

38. Make buttons and typed commands share rules

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView PDF page

A text command, a clicked object and a visual-script node should all be able to reach the same puzzle rule. Otherwise you can fix a bug in one route and leave it in the other two.

1. Select the note’s Look response in Verb Actions.

2. Remove the temporary Show Message test if it is still present.

3. Add Call Script Function → Run Adventure Command from Adventure Controller.

4. Set command to read note.

5. Test the typed command and a Look click. Both should show the same reply.

Source table from 38. Make buttons and typed commands share rules, page 41
Object responseCommand parameter
Room key → Taketake key
Room key → Looklook key
Note → Look / Readread note
Door → Openopen door
Radio → Looklook radio
Radio → Useturn on radio

For an inventory key-on-door rule, call send with use key on door. For a fuse-on-radio rule, call use fuse on radio. The controller still verifies ownership and room state, even when the call came from a visual interface.

Do not leave the old Add Inventory, hide-model and score actions alongside the controller call. The shared function already performs the successful puzzle changes.

Page 41 of 68Permalink
Go to page