DIRECTIVE |
|
OPERANDS |
|
DESCRIPTION |
_report_errors |
|
true / false |
|
Turns error reporting on/off. If there is an error while the script is being processed, it will be output to a file called "Pfhortran Error Report". |
_procedure |
|
|
|
Defines a new procedure. Procedures are linked to specific game events, and which event each procedure represents is passed as an operand. Each procedure has a "which" variable that contains a single value. The complete list of possible procedures are as follows: |
|
|
init |
|
An init procedure is executed only once, just before game play starts. Variable definitions and level setup should be done here. |
|
|
idle |
|
The idle script executes every frame. It controls what is happening when from frame to frame. idle is unique in that it repeats automatically and has no "which" variable. |
|
|
tag_switch |
|
This procedure executes whenever a tag switch is thrown. The tag effected is passed into the procedure's "which" variable. |
|
|
light_switch |
|
This procedure executes whenever a light switch is thrown. The switch effected is passed into the procedure's "which" variable. |
|
|
platform_switch |
|
This procedure executes whenever a platform switch is thrown. The switch effected is passed into the procedure's "which" variable. |
|
|
terminal_enter |
|
This procedure executes whenever the player enters a terminal. Which terminal is passed to the procedure's "which" variable. |
|
|
terminal_exit |
|
This procedure executes whenever the player leaves a terminal. Which terminal is passed to the procedure's "which" variable. |
|
|
pattern_buffer |
|
This procedure executes whenever the player saves. Which pattern buffer was used is passed to the procedure's "which" variable. |
|
|
got_item |
|
This procedure executes whenever the player picks up an item. Which item they picked up is passed to the procedure's "which" variable. |