Skip to content
Gankro edited this page May 26, 2012 · 18 revisions

An action at its most base level is a command and its parameters. When used in an Action tag, the quotes should not be written. These commands are currently supported:

Table of Contents

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 player and their 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, and change the room to the one it is in.

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.

Syntax: "sprite,x,y"

deltaForSprite

Move the sprite by the specified amount for the specified amount of frames.

Syntax: "sprite,x,y,frames"

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. A sprite can be in no rooms, and this is fine, since it can still be referenced by its name.

Syntax: "sprite,room"

playMovie

Play the specified movie asset.

Syntax: "movie"

cancel

Takes no parameters, does nothing

Clone this wiki locally