Skip to content
Gankro edited this page May 26, 2012 · 1 revision

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

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