Skip to content
jandii edited this page Aug 29, 2012 · 18 revisions

An action at its most basic level is a command and its parameters. When used in an <action> tag, the quotation marks should not be written.

Table of Contents

Supported Commands

talk

Activates a dialog. It takes one parameter that is a series of dialogs.

The syntax for this is specified on the dialog page.

changeRoom

Changes the current room to the specified room, and moves the character to it.

Syntax: "newRoom,newX,newY"

playAnimation

Have the target sprite play the specified animation.

Syntax: "sprite,animation"

This command also supports "char" in place of "sprite" to play this animation on the player.

changeChar

Change the player's character to the one specified. Also changes the room to the one in which the new character is standing.

Syntax: "sprite"

playSong

Make the specified audio asset play as the background music.

Syntax: "song"

playSound

Make the specified audio asset play as a sound effect.

Syntax: "sound"

teleport

Calls the changeRoom command, and applies transportalizer effects.

Syntax: changeRoom's syntax.

playEffect

Play the specified effect at the specified location.

Syntax: "effect,x,y"

openChest

Open the specified chest, display the specified sprite as its contents, and a message.

Syntax: "chest,sprite,message"

waitFor

Take away player control, and wait for the specified trigger.

Syntax: see trigger syntax

deltaSprite

Move the sprite by the specified amount. <--! jandii: what's the unit of measurement? spaces? pixels?>

Syntax: "sprite,dx,dy"

moveSprite

Move the sprite to the specified location.

Sytnax: "sprite,x,y"

addSprite

Add the specified sprite to the specified room. Warning: if this sprite is in another room, it will now be in both!

Syntax: "sprite,room"

removeSprite

Remove the specified sprite from the specified room. Even if a sprite isn't physically present anywhere, it can still be referenced by name.

Syntax: "sprite,room"

playMovie

Play the specified movie asset.

Syntax: "movie"

Actions with no Parameters

cancel

Takes no parameters, does nothing.

Clone this wiki locally