Skip to reading
Verbs & Mouse Cursors

15. Change verbs and cursors through actions or scripts

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

Use the shared action system when a cutscene, GUI action list or visual script needs to change a current command or pointer.

Source table from 15. Change verbs and cursors through actions or scripts, page 38
ActionMain fieldsResult
Change VerbNew Verb (verbId)Select a command.
Change Game CursorCursor (cursorId)Request a cursor override without changing the selected command.
Enable / Disable Verb Command UsageEnabled (enabled)Suspend or restore the shared verb interaction route.
Execute Selected Verb CommandCharacter / Object (entityId)Run the currently selected command on a target.
CancelPrepositionNoneCancel a pending first-object selection.

A cursor override changes the pointer route, not the meaning of a click. You can show an alternate cursor while the selected command remains Look.

GDScript example#

Put these calls inside the entry function supplied by the script editor. Keep the template's existing wrapper and parameters.

Code example
await ChangeVerb({"verbId": "wind"})
await ChangeGameCursor({"cursorId": "alternate_pointer"})

To release a forced cursor and return to the normal selection rules:

Code example
await ChangeGameCursor({"cursorId": ""})

Do not change the verb merely to restore an overridden pointer. They are separate settings.

PCA Script#

Code example
function run()
    ChangeVerb({"verbId": "wind"})
    ChangeGameCursor({"cursorId": ""})
end
Page 38 of 44Permalink
Go to page