Open main menu

Difference between revisions of "Parallaction/Scripts"

2,078 bytes added ,  10:00, 21 July 2007
Added some other location blocks.
m (Changed headings.)
(Added some other location blocks.)
Line 81: Line 81:
|-
|-
|ENDANIMATION  ||Marks the end of Animation definition.
|ENDANIMATION  ||Marks the end of Animation definition.
|-
|}
<br>
===Comment/Endcomment block===
These blocks are made of plain text, followed by an ENDTEXT statement on its own line.
<br>
===Nodes block===
This block only appear once in a location file, and holds a list of screen coordinates.
{| border="1" cellpadding="2" width=100%
|COORDS  ||Declares one point (x, y) to be used in walk path calculation, whenever a direct path between two positions is not available.
|-
|ENDNODES ||Marks the end of Nodes block.
|-
|}
<br>
===Commands/Acommands block===
This block holds a list of commands with their own parameters. With regard to the order in which commands are encountered during parsing, the execution flow is '''backwards'''.
{| border="1" cellpadding="2" width=100%
|SET        ||Sets a global (system) flag or a flag declared with LOCALFLAGS statement.
|-
|CLEAR      ||Clears a global (system) flag or a flag declared with LOCALFLAGS statement.
|-
|START      ||Sets kFlagsActing flag, starting animation script (SCR) execution.
|-
|STOP        ||Clears kFlagsActing flag, stopping animation script (SCR) execution.
|-
|SPEAK      ||Schedules a dialogue for execution at the beginning of the next game loop.
|-
|GET        ||Adds an item (Zone) to the inventory and removes it from screen, unless kFlagsFixed is set for the same Zone.
|-
|DROP        ||Removes an item from inventory.
|-
|LOCATION    ||Schedules a location switch.
|-
|OPEN        ||Schedules a door for opening at the next frame.
|-
|CLOSE      ||Schedules a door for closing at the next frame.
|-
|ON          ||Sets kFlagActive, this displaying a previously hidden Zone or Animation.
|-
|OFF        ||Sets kFlagRemove, this scheduling a visible Zone or Animation for hiding.
|-
|CALL        ||Calls a built-in routine for special gfx.
|-
|TOGGLE      ||Toggles a global (system) flag or a flag declared with LOCALFLAGS statement.
|-
|QUIT        ||Sets system quit flag, thus telling the engine to exit the game.
|-
|MOVE        ||Sets animation to be moved at the specified position.
|-
|ENDCOMMANDS ||Marks the end of Commands list.
|-
|-
|}
|}
56

edits