Skip to reading
Verbs & Mouse Cursors

16. Check the whole chain in play

Edition 0.86.3.4

Create adventure commands, configure cursor artwork and hotspots, and connect mouse, GUI and parser input to the same interactions.

Download PDFView PDF page
On this page

BASIC#

Code example
FUNCTION Run()
    AWAIT ChangeVerb({"verbId": "wind"})
    AWAIT ChangeGameCursor({"cursorId": ""})
END FUNCTION

Lua#

Code example
local Script = {}
function Script.run()
    await(ChangeVerb({verbId = "wind"}))
    await(ChangeGameCursor({cursorId = ""}))
end
return Script

Temporarily suspend verb use#

Use Enable / Disable Verb Command Usage with false at the appropriate point, and restore it with true when interaction should resume. This guards the shared verb route. Keep the rest of your input/cutscene design consistent; it is not a promise to disable every unrelated custom script or GUI action.

When using a normal GUI verb selector, prefer set-verb, as explained in chapter 11. When you need a scripted selection or an explicit sequence of actions, use Change Verb and, where appropriate, an Execute Selected Verb Command action with a known target.

Use a fresh preview after applying and saving the authored records. Start with Verb Single Click and a visible command label; that makes each stage easy to observe.

Mouse route#

1. Click Wind in your GUI.

2. Check that the command label changes to Wind.

3. Move from the button into the room and check the custom pointer.

4. Hover over the clock and check the target name.

5. Click the clock and confirm its Wind message.

6. Check clock_wound in your own debugging or game-state display if you added the variable step.

Page 39 of 44Permalink
Go to page