Room actions
Room actions are custom player inputs that builders define in rooms. When a player enters matching text, the room executes the configured commands and substitutes that player for {{ actor }}.
Open a room and select Actions to add, edit, clone, or delete its actions.
Actions
Section titled “Actions”The Action field contains the command a player uses to trigger the room action. A room might define jump pool, which transfers the player to a swimming-pool room. The pool could have its own exit pool action to return the player to the original room.
Separate several acceptable actions with or. To let players enter the pool with either jump pool or dive pool, use:
jump pool or dive poolMatching is case-insensitive but otherwise exact against a complete alternative. An action of jump pool matches JUMP POOL; it does not match jump, quickly jump pool, or extra words after the phrase.
Display Action in Room is enabled by default. It adds an action button below the room description using the first defined action. In the pool example, the button reads jump pool.
If a room has several room actions, the first action from each one is displayed.
Input precedence
Section titled “Input precedence”Custom actions are checked before ordinary game commands. For a player input, the engine tries these in order:
- item actions available from objects on the ground;
- room actions;
- quest completion actions; and
- ordinary player commands.
Avoid reusing a built-in command such as look unless replacing it is deliberate. An item action with the same text also takes precedence over the room action.
Commands
Section titled “Commands”The Commands field contains the commands that the room executes after a player enters a matching action. See Mob and room commands for the room-command reference.
Use {{ actor }} whenever a command should target the player who triggered it:
/send {{ actor }} The pool water is icy./transfer {{ actor }} 42Several commands may be entered on separate lines. Command timing and semicolon behavior are explained in Mob and room commands.
Conditions
Section titled “Conditions”Conditions can limit when a room action triggers. See Conditions for the complete syntax.
When Display Action in Room is enabled, the room description displays only actions whose conditions evaluate to true for the player.
Several action records may use the same input as condition branches. The engine checks every matching record, so make their conditions mutually exclusive unless all passing branches should execute:
Action: pull leverConditions: not marked lever pulledAction: pull leverConditions: marked lever pulledFailure messages
Section titled “Failure messages”When a player does not meet an action’s conditions, Show Failure Message determines what happens if they try the action.
- If it is disabled, the player receives an “Unknown command” error.
- If it is enabled and Failure Message contains text, the player receives that custom message.
- If it is enabled but no custom message exists, the game tries to use a reason supplied by the condition.
A condition can produce a reason when it is either a single condition or an expression whose components are all joined by and. An expression containing or or not does not attempt to produce a reason.
If no suitable condition reason or custom failure message exists while Show Failure Message is enabled, the game displays:
Action could not be completed.Action cooldown
Section titled “Action cooldown”Action Cooldown defaults to 10 seconds. After an action executes, another attempt before its cooldown expires returns More time is needed.
The cooldown belongs to that action in the live room instance, not to each player. In a multiplayer world, one player can therefore put the action on cooldown for everyone in that room. The runtime treats a configured value of 0 as the default 10 seconds; use marks or facts when the gate should model progression rather than a short timing limit.
Test every branch
Section titled “Test every branch”Test the exact typed phrase as well as the displayed button. Then test each condition branch, its failure behavior, two players using it close together, and any commands that move or modify the triggering player.