50
1
SW
7.2.7
SCRIPTS / LUA
A
script
is a simple program; a file of instructions written by the user in LUA language
Each
script
can be thought of as a script that the player runs; a series of pre-programmed
tasks that are run when a certain stimulus is received.
Figure 49: Script example
1.
PLAYER ONE/ PLAYER ZERO has
20
scripts
available, each of which is completely
configurable. The default names are: S01, S02…S20. When you click on the name, it
will take you to the configuration for that
script
. The name that appears here for the
script
can be edited within the
script
configuration. After this setting is saved in the
script
, you need to refresh the browser page (F5) in order to display the changes.
2.
Useful information for
script
configuration and Lua reference manual.
3.
Parameters of each
script
that can be configured:
•
Name:
name given to the
script
by the user. This name will appear in the header
of the Scripts/LUA page.
•
Enable:
enables or disables the
script
.
•
Trigger:
stimulus that triggers the execution of the
script
. There are different
ways to trigger a
script
or automate tasks: