Skip to content

Action Selector (case)

112

Description The Action Selector node functions as a logic switch for execution flow. When the action input is triggered, the node evaluates the current integer in the value input and fires the corresponding output channel (0-5). This is essential for creating branching logic where a single trigger needs to cause different effects based on the game state.

Use Cases * Multi-State Puzzles: Route a "Check Solution" trigger to different outcomes based on which level of a puzzle the player is currently on. * Difficulty Settings: Change the game flow by directing an action to different branches (e.g., giving more or fewer hints) depending on a stored difficulty variable. * Random Events: Pair this with a random number generator to trigger one of six different environmental reactions (lights, sounds, or props).

Connectors in

  • value [type: integer]: The index (0 to 5) that determines which output will be activated.
  • action [type: action]: The execution pulse that triggers the selection logic.

Connectors out

  • out0 – out5 [type: action]: The available output channels; only the one matching the current value is fired.

Connectors in

  • value [type: integer]
  • action [type: action]

Connectors out

  • out0 [type: action]
  • out1 [type: action]
  • out2 [type: action]
  • out3 [type: action]
  • out4 [type: action]
  • out5 [type: action]