Index
Xelagot action script
Recording positions
Positions can be recorded using verbal
commands. This facility only works properly for new scripts, or
for scripts which only contain the To statement. If you wish
to record positions for an existing script, start a new script,
record, then save it. You can then copy+paste the positions into
the other script.
Make a new script by pressing the New button on the
Action Script label in menu Uni | Dialog, scripts.
Position your bot, then use the following verbal commands:
- /addpos records the position of the
bot after the current line
- /delpos deletes the position at the
current line
- /inspos inserts the position at the
current line
These commands can be quite confusing if the bot has moved away
from its position at the current line. The following set of verbal
commands will position the bot properly:
- /t positions the bot at the current
line of the script
- /p previous position
- /n next position
The /addpos and /inspos commands will produce this
sort of statement in the script:
To 2.034n 0.148w 0.01a 0.0°
|
To allow a better identification of these statements in the
script, I have added two commands which will allow you to add,
modify or delete a 'label' or tag at the end of the To
statement:
- /addlab text adds a
label
- /replab text or blank modifies
or deletes
An example of such a statement, using the verbal command /addlab
facing the door would be:
To 2.034n 0.148w 0.01a 0.0° :facing the door
|
There are four verbal commands for running and stopping the
execution of a script:
- /plb to playback the script from the
start
- /end to end the execution of the
script and reset the line pointer at the first line
- /stop to stop execution at the current
position
- /start to resume execution from the
current position
Index