Skip to reading
Action Lists & Events

Choose a script or an exposed function

Edition 0.86.4.7

0.86.4.7 tutorial edition with new lessons for Studio 0.86.4.6 and 0.86.4.7. Earlier chapters, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
PCA 3D ADVENTURE STUDIO                                                                           Action lists and events

STUDIO 0.86.4.6 / 0.86.4.7 • LESSON 1 OF 4

An action list can start a script record, or it can call one named function and supply specific arguments. The current shared action label is Run Script.

1. Run a whole record

In the action list or GUI event choose Run Script. Select the intended script record from the available choices. When following an older lesson that says to choose Run Visual Script in this menu, choose Run Script. Stored action identifiers and existing script-language commands can retain their older spelling.

2. Call a specific function

To pass arguments, expose a function in the script’s Functions as Actions and Nodes dialog, choose Use Definitions, and save the script. At the caller choose Call Script Function, select the function and fill its arguments. Use a literal for a fixed amount or Expression for a value supplied by the triggering event.

3. Check the result in context

Trigger the actual caller in Runtime Preview. For a GUI tuner, rotate once and observe the value passed to the function. If an action appears to execute twice, inspect both the primary event action and Additional Event Actions. Each configured action runs in its own place in the list.

WHAT TO CHECK

A menu-label change does not require rewriting a working BASIC program, PCA Script command or stored action ID. When updating a caller for a changed signature, confirm every argument and run the interaction again.

Related original lesson | p. 26 Tutorial edition 0.86.4.7

Page 191 of 194Permalink
Go to page