Skip to content

Replace

122

The Replace node allows you to dynamically modify text by searching for a specific word or character and swapping it for another. This is particularly useful for sanitizing player input or updating dynamic clues in real-time.

When to use this node: * Dynamic Clue Updates: Changing a generic clue like "Find the [COLOR] key" to "Find the BLUE key" once a certain game state is reached. * Input Sanitization: Automatically removing unwanted characters (like spaces or special symbols) from a player's typed response before processing it. * Template Formatting: Using a template string and replacing placeholders with actual values from game variables.

Connectors in

  • S [type: string]
  • find [type: string]
  • replace [type: string]

Connectors out

  • result [type: string]

Node properties

  • find [type: string]
  • replace [type: string]
  • S [type: string]