Objects serve as the fundamental building blocks in the logic definition. The flow of the Puzzle Schema is driven by the state of objects, while tasks (such as puzzles, actions, and experiences) initiate Event Sequences that activate these objects. The logic definition is configured using the Realix Designer. This article describes the different types of objects and the properties that can be set for each type.

You can define all these objects without selecting any physical device initially. Devices with channels can be added later, and the objects can then be assigned to the channels, or vice versa. Additionally, you can easily reassign objects to different devices if you need to move a component electrically to another device.

Objects share an Object ID and can be organized by Group and Subgroup:

  • Object ID: The Object ID format allows alphanumeric characters, as well as underscores (“_”) and hyphens (“-“). Spaces are not permitted.
  • Group and Subgroup: Choose the room group and, where useful, a subgroup in the shared object creation dialog or the object’s Properties. These assignments organize the room view without changing the object’s physical channel.

The following sections describe all the available object types.

Inputs

Inputs are digital and can be either 0 (inactive) or 1 (active). The following properties can be set:

  • Invert: This setting determines how the device channel should be interpreted. Since the device only handles an electrical signal, a signal set to GND (ground) can indicate that it is active, meaning 0 would be active. On a logical level, we want 1 to represent active. In this case, choose to invert the signal.
  • Device Channel: You can assign the input to a specific device channel.

Outputs

Outputs normally use 0 (inactive) and 1 (active) for digital on/off control. A channel that supports value output can also accept integer values through Set Value; the supported range and interpretation depend on the device and channel mode. The following properties can be set:

  • Invert: This setting determines how the device should generate its output signal. If the component driven by this output deactivates when powered, choose to invert the signal. This ensures that the component behaves correctly, with a logical 1 representing activation and a logical 0 representing deactivation.
  • Device Channel: You can assign the output to a specific device channel.

Lights

Light objects represent the lighting fixtures in the escape room, ranging from single-color lights to RGBCCT lights. The most important devices that support light channels are DMX and Philips HUE. When creating a light object, you need to choose its type, and later connect it to a channel of the same type.

In the Designer, if you already have or know the physical device, it is recommended to first add the device along with its channels, and then create light objects based on those channels. For Philips Hue, this process can even be automated by importing from the HUE bridge. The following properties can be set:

  • Light Type: The type of light selected when creating the light object. This cannot be changed afterward.
  • Device Channel: Assign the light to a specific device channel, typically a DMX or Philips HUE channel.
  • Reset Value: The color (if applicable) and intensity value that will be applied to the light when the game is reset. This setting is optional.
  • Start Value: The color (if applicable) and intensity value that will be applied to the light when the game starts. This setting is optional.

Lights also include the scalar types Function and Position. Function can select a fixture function such as a mode or effect code; Position controls a scalar lighting position channel. These are Light objects and use light commands. They are distinct from the Position Control object type described below, which uses percentage commands.

For light intensity or scalar values, select % (0–100) or Byte (whole numbers 0–255) in the command panel, object tests and start/reset settings. For example, use Byte 66 when an 8-bit DMX function requires that exact code. Switching from 26% gives byte 66 once; keep Byte selected for exact function codes. On 16-bit and wider channels this is a scaled 0–255 range, not native high-resolution input. The chosen unit is stored with each effect.

DMX Groups

Special attention should be given to DMX Groups. DMX Groups allow you to control multiple DMX channels with a single command. A DMX Group is itself a Light object and has its own Object ID, Light Type, Monitor setting, Reset Value, and Start Value. However, it is not one to one attached to a physical DMX channel. Instead, the DMX Member Channels property contains references to one or more physical DMX channels that are controlled together as a group.

Position Control

Position Control controls a position or speed. Assign it to a compatible channel, such as a Multi Pod – Servo channel or an external-service channel. Use Set Percentage or Transition Percentage with a value from 0% to 100%.

  • Proportion: The value ranges from 0% to 100%; the device mapping determines the resulting physical position or speed and channel resolution.
  • Device Channel: Assign Position Control to a compatible device channel.

For an absolute integer rather than a proportion, use an Output and Set Value with a channel configured for value output. Position Control uses percentage commands; Output uses an integer value appropriate for its channel. For DMX setup and supported ranges, see DMX Templates.

RFID Readers

RFID reader objects provide information on whether an object with an RFID tag or card is on a reader and which serial number is read from the tag or card. An RFID serial number looks like 23:5F:27:A5. This is not a very clear value to work with in your puzzle. Therefore, in the ERC, you can set up a library with meaningful names and their corresponding serial numbers. In a puzzle, you can test against the meaningful name instead of the code. This has the added advantage that if you need to replace a damaged card or tag, you only need to update the library, not the puzzle logic itself.

The device that supports the RFID reader is the Realix RFID Pod having one RFID channel. Besides the ID, there is only one other property that can be set:

  • Device Channel: Assign the RFID to a specific device channel of the RFID Pod.

Sensors

Sensor objects represent an analog value read from a sensor channel and add thresholds to interpret that value. Analog channels can be found on the Realix IO Pod.

An analog channel delivers a value within a specified range, defined by a minimum and maximum value set in the sensor definition. To translate the analog input value into a meaningful result, the user must define thresholds. For example, defining a single threshold at 50% means that when the analog value is below 50% of the maximum, the resulting value is 0, and when it is above 50%, the resulting value is 1. If two thresholds are defined, the input value can result in three possible values: 0, 1, and 2. To prevent rapid fluctuations between two result values, you can specify a hysteresis around the thresholds. Below is an overview of the relevant properties:

  • Min Value: Minimum absolute analog value, depending on the selected channel. For Realix IO Pod channels, this is 0.
  • Max Value: Maximum absolute analog value, depending on the selected channel. For Realix IO Pod channels, this is 1024.
  • Hysteresis: Value from 0% to 100% representing the hysteresis around the thresholds. A starting value of 10% is recommended.
  • List of Thresholds: Specifies the thresholds, each ranging from 0% to 100%.
  • Device Channel: Assign the Sensor to a compatible sensor channel that provides the analog value.

See below the dialog in the Designer that illustrates how thresholds are defined. The gray area around threshold is the hysteresis.

Text Inputs

Text Input objects receive text from a device channel. Unlike a regular Input, which provides a numeric value such as 0 or 1, a Text Input provides a complete string. This makes it suitable for controls where players enter multiple characters or digits.

Text Inputs are mainly used with input controllers connected through the Realix Multi Pod or with custom interactive controls created for the Realix Media Box. For example, a keypad can return the code entered by the players as one text value. The puzzle can then compare this value with the expected code instead of processing every key press separately.

A Text Input can also be added to the objects monitored for a Puzzle or Action. Its current value is then displayed in the Game Host application, allowing the game host to see what the players have entered. This is especially useful when assisting players or determining why a keypad puzzle has not yet been solved.

The following property can be set:

  • Device Channel: Assign the Text Input to a device channel that provides a text value.

Media, Philips HUE and Custom

The objects in this category are high level objects which are controlled externally.

  • Media: Media objects are used to play or display media on a device such as the Media Player or an External Service once connected to a channel. The following media types are available:
    • Video Player: This object allows you to play a video file over a video channel. When a new video is launched, it replaces the currently playing video on this player.
    • Audio Player: This object allows you to play an audio file over an audio channel. When a new audio fragment is launched, it replaces the currently playing audio on this player. To play multiple audio files simultaneously, two or more audio players can be used, which can still reside within one player.
    • Image Viewer: This object allows you to display an image over an image channel.
    • Text Viewer: This object allows you to display text over a text channel.
  • Philips HUE: There is one object type available for Philips HUE:
    • HUE Scene Controller: This object can be compared to a video or audio channel but instead a HUE scene is launched.
  • Custom: This object type is meant only for an External Service. External Services are devices that can receive Media commands but more importantly, receive and handle custom commands. There can be multiple custom external channels.
    • Custom: Defines a user-defined object which then should be created as a channel within an External Service. Parameters to send are free to define.

Variables

Variables are internal objects that store a text value within the game logic. They are not connected to a physical device channel. Instead, their value can be set from an Effect Sequence or script and used elsewhere in the project.

Variables are particularly useful for exchanging information between puzzles. For example, one puzzle can store the route chosen by the players, a discovered code, or the result of an earlier decision. Another puzzle can then use that stored value in its solved conditions or custom script. This allows separate Logic Components to share information without requiring an additional physical input or output.

A Variable can also be included in the monitored objects for a Puzzle or Action. Its current value will then be visible in the Game Host application. This can provide the game host with useful feedback about internal game states that would otherwise not be visible, such as the current stage of a puzzle or a value passed between puzzles.

Variables store their values as text and can be compared with an expected text value in solved and ready conditions. When the game is reset, Variables are cleared so that values from the previous game are not retained.

The reserved System values are different from project Variables: they are read-only information supplied by Core, including language, skill level, team details, elapsed and remaining time, progress and game status. Read them with getState("System.Language"), for example; do not assign them with Set Variable. See the System value reference for names, types and the simplified System.GameState value.