38. Make buttons and typed commands share rules
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.
| Object response | Command parameter |
|---|---|
| Room key → Take | take key |
| Room key → Look | look key |
| Note → Look / Read | read note |
| Door → Open | open door |
| Radio → Look | look radio |
| Radio → Use | turn 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.
