-
Notifications
You must be signed in to change notification settings - Fork 29
Trigger
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)
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
Wait for the specified number of frames (at ~30 fps)
parameters: "time"
Example:
time,30
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