BETA — Preview build
Skip to content

Actions ​

An action is the component that actually changes something on your layout. A script is a list of actions; with a group you bundle actions into a logical step, and with a condition you run different actions depending on the state of your layout.

Execute conditions ​

Just like scripts, every action can be conditional. You can configure whether all (AND) or only one (OR) condition must be met to execute the action.

Conditions can be based on accessories, feedback sensors, vehicle state, flags, variables, camera detection, the model clock, or chance. If the conditions are not met, the action is skipped and the script continues with the next action.

Custom label ​

Every action can have an optional custom label that appears alongside the auto-generated description. This helps you annotate actions to keep your scripts readable — for example, "slow down before curve" on a set speed action.

Action selector ​

Adding an action starts with tapping the + button in the script, or inside a group or condition. The action selector appears, allowing you to pick the desired action. It shows your recently used actions at the top, followed by the categories below.

The action selector

Action types ​

Actions are organised into categories:

  • Logic & flow — Run actions under a condition, group actions, and set flags and variables.
  • Vehicles — Select, drive, and manage your locomotives.
  • Layout — Control turnouts, signals, and other accessories.
  • Train dispatcher — Request and release path clearances.
  • Timing — Wait for time or conditions.
  • Control — Execute scripts, control timetables, play sounds, and show notifications.

Overview ​

CategoryActionDescription
Logic & flowConditionRun different actions depending on conditions (if / else if / else)
Logic & flowChoiceLet the user pick an option and run the actions of that option
Logic & flowGroupBundle actions into a named step that can be folded, disabled, or repeated
Logic & flowSet flagsSet script-level flags
Logic & flowSet variableModify a variable (set, increase, decrease)
Logic & flowReset variablesClear the value of every variable
VehiclesSelect vehicleSet the active vehicle for subsequent actions
VehiclesSelect from feedbackSelect vehicle by reading a feedback sensor (RailCom)
VehiclesSet speedSet speed as a percentage (0–100)
VehiclesStop vehicleSet speed to 0
VehiclesSet directionSet direction to forward or reversed
VehiclesToggle directionReverse the current direction
VehiclesSet functionTurn a vehicle function on or off (by icon or by function)
VehiclesSet profileApply a vehicle profile (idle, shunting, slow, medium, fast)
VehiclesStore stateSave the vehicle's current state
VehiclesRestore stateRestore a previously saved state
LayoutSet accessorySet an accessory to a specific state
LayoutSet routeApply a predefined route
LayoutSet pathAutomatically find and set a path through the layout
Train dispatcherRequest clearanceAsk the dispatcher for permission to drive a path
Train dispatcherRelease clearanceRelease the clearance currently held by the script
TimingWaitPause for a fixed or random duration
TimingWait for conditionPause until a condition becomes true
ControlExecute scriptRun another script inline (specific or random by tag)
ControlControl timetableStart or stop a timetable
ControlPlay soundPlay a sound (blocking or in background)
ControlShow notificationDisplay an in-app notification