Action classes

Description
Action classes define whether an action can execute based on whether the class is active or not. You can also toggle the class using the command through normal script operation, or through the use of configured triggers.

Syntax
action (class) when action (class)

Parameters

 * class
 * the name of the class required to be active for this action to execute
 * bool
 * any valid boolean value (on, true, 1; off, false, 0) to toggles the class

Examples
action (lootcoins) goto lootcoins when eval contains($roomobjs, "coin") action (lootcoins) on