Skip to content

Trigger Button Trigger

Starts when a player clicks a text button in chat.

Inputs: 0 · Outputs: Dynamic, one output per button action plus default

Settings

SettingTypeRequiredDefaultDescription
Button ActionsButton Actions EditorYes[]Add one row for each button ID you use in messages, then choose what the click should do.

How It Works

Create clickable buttons inside a Send Message field with:

text
%text.button(<text>)(<tooltip text>)[<button id>]%

In Button Actions, use the same button ID and choose one of these behaviors:

  • Trigger Flow: Continue the flow from that button's output handle.
  • Run Command: Run a command when the player clicks.
  • Suggest Command: Put a command in the player's chat box.
  • Open URL: Open a website prompt for the player.
  • Copy to Clipboard: Copy text for the player.

Inside a button-triggered branch, %button.id% returns the clicked button ID.

Example

Ask a player to confirm an action:

  1. Send Message: %text.button([Accept])(&aClick to accept)[accept]%
  2. Button Trigger: add a button action with ID accept
  3. Set the click action to Trigger Flow
  4. Connect the accept output to the nodes that should run after the click

Sandbox - Oasis Network Documentation