Parameters & Functions

Its sub-page is Scripts.

User defined parameters - here you can declare parameters of five predefined types and use them in switch conditions and in the "Set value" commands of switches and multi-actions. For an array you specify its size, not a default value. To initialize an array we recommend using the preload script. Right-clicking a parameter name opens a popup menu with "Find all references", which finds all references to that parameter (searching the set parameter actions, SWITCH conditions, scripts and functions) and writes the result to the Log window.

User defined functions - creates a new empty Java function that you can edit and use in a script or in actions. A function has to have a type, a name and a visibility. Note: remove every "manager." from the code of these functions, because the UDF_... functions are placed inside the manager class itself. Right-clicking a function name opens a popup menu with "Find all references", which finds all references to that function (searching the SWITCH conditions, scripts and functions) and writes the result to the Log window.

The buttons below each list add, edit, delete and move the selected item up or down.

Find all references to GPR / PSR - finds all references to the GPR or PSR register with the specified number (searching the set GPR actions, SWITCH conditions, scripts and functions) and writes the result to the Log window.

Save in storage

User defined parameters - saves the user-defined parameters (variables) in the storage and restores them while the disc is loading.

First ... GPRs - saves the GPRs from 1 to the specified number in the storage and restores them while the disc is loading (0, the default, saves none).

The values are written together with the other data of the storage and read back whenever the storage is read: when the disc is loaded (in both "Restore by command" and "Restore on disc load" modes) and by the "Restore data from storage" action. The storage requires JAR signing and Disc settings other than "Do not store" - otherwise nothing is saved or restored.