Skip to reading
Text & Sierra-Style Adventures

19. Expose the functions to action lists

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 illustrations

Open Functions as Nodes for the Adventure Controller. Add definitions for the three functions below. Their code is already in the script; the definitions tell PCA how to show them in visual editors.

Source table from 19. Expose the functions to action lists, page 22
Function nameFriendly labelParameters
sendRun Adventure Commandcommand: String; default look
presentationSwitch Adventure PresentationNone
dismiss_replyClose Adventure ReplyNone

Figure 11. Function definitions provide the names and editable parameters used by action-list and visual-script calls.

Apply the definitions. In an action list, add Call Script Function, choose Run Adventure Command from Adventure Controller and enter a command such as read note.

“Use Definitions” applies the declared function list to the editor. It is not a Play button and does not execute the selected function. After applying, look for the function in a Call Script Function selector or the visual-node function tools.

A definition must point to an actual function with a compatible parameter list. Changing the friendly label does not rename the GDScript function. Keep send(command: String) as written.

Page 22 of 68Permalink
Go to page