Skip to content
tinaun edited this page Oct 18, 2012 · 2 revisions

A trigger is an event to listen for. The syntax for a trigger is "event,params". The following events are currently supported:

Triggers may have the following optional attributes:

    restart: whether the trigger should reset itself when satisfied (false if not specified)
    detonate: whether the trigger should be removed when satisfied (false if not specified)

spriteProperty

Check if the specified property of the specified property satisfies some condition. Currently the three conditions that can be checked are <, >, and =. Additionally, they can only be compared to integers at this point in time.

parameters: "sprite,property condition value"

The sprite parameter may be specified as "char" if the player's character is the desired target.

Example:

 spriteProperty,char,x>50

time

Wait for the specified number of frames (at ~30 fps)

parameters: "time"

Example:

 time,30

played

Wait for the specified sprite's current animation to be done (including no more loops left).

parameters: "sprite"

The sprite parameter may be specified as "char" if the player's character is the desired target.

Example:

 played,sweetSprite
Clone this wiki locally