The following is a list of the commands available to robots. For a detailed description of each command click the links below.

Command Description
abs calculates absolute value
acceltarget sets acceleration target
ahead moves a robot forward
ascanevents controls auto-scan events
assert checks for a true condition (debugging helper)
author specifies a robot's author
back moves a robot backward
blocking controls command blocking
bodyleft rotates a robot's body left
bodyright rotates a robot's body right
cldcookieevents controls cookie collision events
cldmineevents controls mine collision events
cldmissileevents controls missile collision events
cldrobotevents controls robot collision events
cldwallevents controls wall collision events
clear resets all values of a variable
cleararray removes all array variables
clearprops removes all property variables
clipmoves control lateral movement clipping
continue restarts a previously stopped movement or rotation
copy copies root value and array and property variables from source to destination
coreevents controls core events
countarray determines the size of a variable's array
countprops determines the number of properties on a variable
customevents controls custom events
deceltarget sets deceleration target
dtccookieevents controls cookie detection events
dtcmineevents controls mine detection events
dtcrobotevents controls robot detection events
dtcwallevents controls wall detection events
endturn ends a robot's turn immediately
fire fires an energy missile
gethitsother obsolete, use the _hitstorobots system variable instead
gethitsself obsolete, use the _hitsfromrobots system variable instead
gethitstr obsolete, use the _hitstrtorobots system variable instead
getothers obsolete, use the _robotsalive system variable instead
getpropname determines the name of a property
getrandom calculates a random number
getshots obsolete, use the _shotsfired system variable instead
gettime gets the current time as a string
getturns obsolete, use the _turns system variable instead
gunleft rotates a robot's gun left
gunright rotates a robot's gun right
hasprop determines if a property exists
initialize sets all variable values to a specified value
isequal determines if root values and all array and property elements are equal
isnum determines if a value is numeric
isstr determines if a value is a string
lockall controls rotation locking of a robot's body, gun, and radar
lockgun controls rotation locking of a robot's gun, and radar
max determines larger of two values
min determines smaller of two values
msgbox displays a message box to user
name sets a robot's name
numfrom converts a value to a number
pingevents controls radar ping events
pophead removes an element from the beginning of an array
poptail removes an element from the end of an array
print sends a root value to the print log
printdeep sends a root value and all array and property elements to print log
pushhead adds an element to the beginning of an array
pushtail adds an element to the end of an array
radarleft rotates a robot's radar left
radarright rotates a robot's radar right
radiochannel sets private tuner channel number
radioevents controls radio events
radiosend sends a radio message
regascan registers an auto-scan event handler
regcldcookie registers a cookie collision event handler
regcldmine registers a mine collision event handler
regcldmissile registers a missile collision event handler
regcldrobot registers a robot collision event handler
regcldwall registers a wall collision event handler
regcore registers a core event handler
regcustom registers a custom event handler
regdtccookie registers a cookie detection event handler
regdtcmine registers a mine detection event handler
regdtcrobot registers a robot detection event handler
regdtcwall registers a wall detection event handler
regping registers a radar ping event handler
regradio registers a radio event handler
round rounds a number
scan sends out a radar ping to find other objects
setaccel obsolete, use the acceltarget command
setarraycount changes the size of a variable's array
sign finds the mathematical sign of a value
sliding controls movement sliding
speedtarget sets speed target
stall skips a specified number of turns
stop stops both lateral and rotational movement
stopmove stops only lateral movement
stoprotate stops only rotational movement
store stores a variable's value for use in the next game
strbreak finds the offset of a matching character
strfind finds the offset of a matching string
strfrom converts a value to a string
stricmp case insensitive string comparison
strins inserts a string into another
strlen determines a strings length
strlower converts a string to lower case
strmid extracts a substring
strrev reverses the order of a string
strspan finds the offset of a non-matching character
strtrim removes leading spaces and tabs from a string
strupper converts a string to upper case
style sets a robot's graphical style
suicide kills a robot immediately
syncall rotates a robot's body and gun to alight with its radar
syncgun rotates a robot's gun to alight with its radar
truncate removes decimal portion of numeric value
version sets a robot's version number
waitfor blocks until specified conditions becomes true

See Also

system variables, scripting language, game information, flow control, special sections, assignment