Commands - vanjac/zoomscape-info GitHub Wiki
Commands available in Command Files:
Command | History | Notes |
---|---|---|
select |
Used with onKey ENTER select
|
|
else |
||
endif |
||
ifFailed |
Certain commands set a "failed" flag. This checks the most recent command. | |
ifOff |
Check value of a boolean property | |
ifOn |
||
ifTimer |
Check the value of the timer using a comparison operator like < or >
|
|
beep |
Never used | |
cancelMusic |
Added 1.50 | Never used. What's the difference between this and stopMusic ? |
cancelSound |
Added 1.50 | Never used |
dialog |
Open a yes/no confirmation dialog. Fail if user chooses "no". | |
dumpLocation |
Never used | |
elevate |
Elevator animation? (move floor and ceiling) | |
exec |
Execute another script (filename with extension) | |
exit |
Quit | |
incTimer |
Add value to timer | |
loadLocation |
Never used | |
loopSound |
Added 1.50 | Never used |
moveBy |
Move player in the facing direction by amount. Used with onKey ARROW-UP and ARROW-DOWN . |
|
noPinPoint |
From SCI2: Hack added by Brad to make the high scores
|
|
onKey |
Assign command to execute when a key is pressed | |
onTimerZero |
Assign script file to execute when timer reaches zero | |
play |
Accepts both sounds/music and script files?? | |
playMusic |
Filename without extension | |
playSound |
Filename with extension | |
positionText |
Set coordinates of text drawn by showText (comma separated) |
|
positionTimer |
Set coordinates of timer | |
positionView |
Set coordinates of 3D view (see also setViewWidthHeight ) |
|
preload |
Preload an archive? | |
rem |
Comment | |
rotateBy |
Rotate player by given degrees. Used with onKey ARROW-LEFT and ARROW-RIGHT
|
|
run |
Never used | |
saveTimerTo |
Never used | |
screenCapture |
Never used | |
scrollText |
Used with onKey PgUp scrolltext pageup and onKey PgDn scrolltext pagedown
|
|
selectTextOnly |
? | |
setAreaResidentLimit |
Possibly related to memory management | |
setConsolePicture |
Set fullscreen background image (filename with extension) | |
setCursor |
Accepts 1 or 2 integers | |
setCursorMode |
Either OFF , ON , or POPUP
|
|
setGround |
Ground color (RGB triple) | |
setImage |
Set texture of specific Object of Room | |
setMouseMoveSpeed |
||
setMouseRotateSpeed |
||
setMusicDriver |
Removed 1.45 | |
setObjectResidentLimit |
Possibly related to memory management | |
setRadius |
? | |
setSky |
Sky color (RGB triple, or palette filename in 1.50+) | |
setSoundDriver |
Removed 1.45 | |
setSpeed |
Used with onKey + and -
|
|
setTextButtons |
Accepts ON /OFF or a list of image filenames (pgup.cmp up.cmp dn.cmp pgdn.cmp ) |
|
setTextFont |
.zof or .fnt file |
|
setTextShadow |
ON /OFF
|
|
setTextWidthHeight |
Set size of text drawn by showText (comma separated) |
|
setTimer |
Set timer value | |
setTimerAlways |
ON /OFF or no arguments |
|
setTimerFill |
? | |
setTimerFont |
||
setTimerMessage |
Message displayed when timer reaches 0 | |
setTimerWidth |
Num digits | |
setTimerZeroCommand |
Seems to be identical to onTimerZero ?? |
|
setViewScreen |
? | |
setViewWidthHeight |
Set size of 3D view (see also positionView ) |
|
setZoomMode |
ON /OFF . On means the mouse controls movement, off means the cursor is visible. |
|
showText |
Specify a .txt file |
|
startTimer |
||
stopMusic |
Fail if nothing playing | |
stopSound |
Fail if nothing playing | |
stopTimer |
||
teleport |
I'm guessing the arguments are X,Y,Z rotation room . rotation seems to span 0 - 65535. |
|
turn |
Set a boolean property to be on or off
|
|
zoomMode |
ON /OFF . Fail if zoom mode already matches value. What's the difference between this and setZoomMode ? |