Skip to main content

\\ Shortcuts

The web editor supports a powerful shortcut system using the \\ prefix. Type \\ followed by the command name to quickly insert any command, media tag, or variable reference.

How It Works​

  1. Type \\ at the beginning of a line (or after indentation)
  2. Start typing the name of the command
  3. Select from the autocomplete dropdown or press Tab to accept

The \\ prefix and the typed text are replaced with the full command syntax.

Command Shortcuts​

\\wait β€” Pause​

Inserts a pause in the dialogue.

\\wait

Result:

<<wait 2>>

\\typing β€” Typing Status​

Shows the "typing..." animation in the chat.

\\typing

Result:

<<typing 3>>

\\upload_photo β€” Upload Photo Status​

Shows the "sending photo..." status.

\\upload_photo

Result:

<<upload_photo 3>>

\\record_voice β€” Recording Voice Status​

Shows the "recording voice..." status.

\\record_voice

Result:

<<record_voice 3>>

\\record_video_note β€” Recording Video Note Status​

Shows the "recording video..." status.

\\record_video_note

Result:

<<record_video_note 3>>

\\reaction β€” Message Reaction​

Sets a reaction emoji on the previous message.

\\reaction

Result:

<<reaction emoji>>

\\jump β€” Jump to Node​

Jumps to another node in the story.

\\jump

Result:

<<jump NodeName>>

\\set β€” Set Variable​

Sets a variable value.

\\set

Result:

<<set $var = value>>

\\declare β€” Declare Variable​

Declares a new variable with an initial value.

\\declare

Result:

<<declare $var = value>>

\\payment β€” Payment​

Charges the user T-Points.

\\payment

Result:

<<payment 100, "marker">>

\\if β€” Conditional Block​

Inserts a complete if/endif block with the cursor positioned at the condition.

\\if

Result:

<<if >>
<<endif>>

\\else / \\elseif / \\endif​

Insert the corresponding control flow commands:

\\else     β†’  <<else>>
\\elseif β†’ <<elseif >>
\\endif β†’ <<endif>>

Media Shortcuts​

\\photo β€” Photo Message​

\\photo

Result:

[photo=file.jpg/]

\\video β€” Video Message​

\\video

Result:

[video=file.mp4/]

\\voice β€” Voice Message​

\\voice

Result:

[voice=file.ogg/]

\\video_note β€” Video Note (Circle)​

\\video_note

Result:

[video_note=file.mp4/]

Inline Variable Shortcut​

When you type \\ inside a message line (not at the beginning), the editor offers to insert an inline variable reference. Select a variable from the list, and \\ is replaced with {$variable}.

Example:

You are typing a message:

Your score is \\

Select the variable $score from the dropdown, and the result is:

Your score is {$score}

Option Condition Shortcut​

When you type \\ on an option line (a line starting with ->), the editor inserts a condition template <<if >> for conditional options.

Example:

-> Secret door \\

The \\ is replaced with:

-> Secret door <<if >>

The cursor is placed inside <<if >> so you can immediately type the condition.