List of simplified commands

This list is for v2.3. Syntax usage: [] - optional argument

delay
delay(n) n - number of ticks The delay command creates a delay between commands in which the player cannot move. One tick is 34/1000 of a second, so 30 ticks is almost one second.

destroy
destroy(x) x - target objects: The destroy command removes all of the specified object from the room. These objects will be replaced when the room is exited and entered again. Note: using the arguments  and   may produce unwanted results.
 * warptokens
 * gravitylines
 * platforms

flag
flag(n,b) n - flag number from 0 to 99 b - "on" or "off" The flag command activates or deactivates a flag. Flags can be used with  to create a conditional statement. By default all flags are set to off.

flash
flash The flash command flashes the white for 5 frames while shaking the screen for 20 frames and plays the flash sound effect.

happy
happy([crewmate]) crewmate - target crewmate(s): The happy command turns the specified crewmate(s) happy and plays the squeak sound effect for the selected crewmate unless otherwise specified (See squeak). If the argument is omitted, the player turns turn happy and no sound effect is played.
 * player
 * cyan/viridian/1
 * purple/violet/pink/2
 * yellow/vitellary/3
 * red/vermillion/4
 * green/verdigris/5
 * blue/victoria/6
 * all/everybody/everyone

ifflag
ifflag(n,script) n - flag number from 0 to 99 script - target script The ifflag command executes a given script if the flag is set to on. The current script will not continue after the target script has finished executing.

iftrinkets
iftrinkets(n,script) n - minimum number of trinkets script - target script The iftrinkets command executes a given script if the player has collected the minimum number of trinkets. The current script will not continue after the target script has finished executing. is often used to used to run another script unconditionally.

iftrinketsless
iftrinketsless(n,script) n - maximum number of trinkets script - target script The iftrinkets command executes a given script if the player has collected less than the maximum number of trinkets. The current script will not continue after the target script has finished executing.

ifwarp
ifwarp(x,y,dir,script) x - x coordinate of target room (1-indexed) y - y coordinate of target room (1-indexed) dir - direction of room warping: script - target script The ifwarp command executes a given script if the room at the specified coordinates is warping in the specified direction. The current script will not continue after the target script has finished executing. This can be used in combination with warpdir to create a secondary flag system. Out-of-bounds values for `dir` are accepted, but they default to 3
 * 0 - no warping
 * 1 - horizontal warping
 * 2 - vertical warping
 * 3 - all sides

map
map(b) b - "on" or "off" The map command enables or disables the minimap. If the map is disabled, the map screen will show an unexplored map with the text "NO SIGNAL" in the center.

music
music(n) n - number of song (List of music numbers) The music command changes the background music to the specified song.

playremix
playremix The playremix command plays the Predestined Fate remix. This command is essentially useless.

reply
reply(lines) message lines - number of lines in the message The reply command creates a cyan text box centered above the player and plays the speak sound effect unless otherwise specified (See squeak). If the lines argument is omitted, the message is assumed to be 1 line long. This command is virtually identical to

sad/cry
sad([crewmate]) cry([crewmate]) crewmate - crewmate to turn happy: The sad/cry command turns the specified crewmate(s) sad and plays the cry sound effect unless otherwise specified (See squeak). If the argument is omitted, the player will turn sad.
 * player
 * cyan/viridian/1
 * purple/violet/pink/2
 * yellow/vitellary/3
 * red/vermillion/4
 * green/verdigris/5
 * blue/victoria/6
 * all/everybody/everyone

say
say([lines[,color]]) message lines - number of lines in the message color - color of the text box: The say command creates a text box. The color parameter determines what color the textbox will be and what sound will play. If the crewmate with the respective color is on the screen, the text box will be centered above their head, otherwise it will be at the center of the screen. The chosen color will be the default text box color until the script ends or it is manually changed. Omitting this argument will result in a gray text box if no previous color has been set. If the lines argument is omitted, the message is assumed to be 1 line long.
 * terminal/gray/grey/0
 * cyan/viridian/player/1
 * purple/violet/pink/2
 * yellow/vitellary/3
 * red/vermilion/4
 * green/verdigris/5
 * blue/victoria/6

speaker
speaker(color) color - color of the text box: The speaker command changes the default color of text boxes. This color will remain the default until the script ends or it is manually changed.
 * terminal/gray/grey/0
 * cyan/viridian/player/1
 * purple/violet/pink/2
 * yellow/vitellary/3
 * red/vermilion/4
 * green/verdigris/5
 * blue/victoria/6

squeak
squeak(sound) squeak(b) sound: b - "on" or "off" The squeak command can be used in 2 different ways: Squeak is on by default, and if it is disabled it will only last for the lifetime of the script.
 * player/cyan/viridian/1
 * purple/violet/pink/2
 * yellow/vitellary/3
 * red/vermillion/4
 * green/verdigris/5
 * blue/victoria/6
 * sad/cry
 * 1) to plays specified squeak sound effect
 * 2) to enable or disable the squeak sound effect

warpdir
warpdir(x,y,dir) x - x coordinate of target room (1-indexed) y - y coordinate of target room (1-indexed) dir - direction of room warping: The warpdir command changes the direction of warping in the room at the specified coordinates to the specified direction. This can be used in combination with ifwarp to create a secondary flag system. Out-of-bounds values for `dir` are accepted, but they default to 3
 * 0 - no warping
 * 1 - horizontal warping
 * 2 - vertical warping
 * 3 - all sides