Skip to main content

Commands

In t-Plot, you can control the game using commands. Commands look like this:

<<wait 2>>
<<typing 4>>

Commands are not shown directly to the player; instead, they are used for actions like waiting or, for example, sending a "typing" status.

Chat Commands​

If you need to change the default values of wait, time_for_status, or reaction for a specific message, or if the story requires a pause in the dialogue, sending a "typing" status, or changing the reaction to an unexpected user message, you can use the following commands:

wait​

The wait command pauses the dialogue for a specified number of seconds and then resumes it.

Example:

// Wait for 2 seconds
<<wait 2>>

typing​

The typing command sends the "typing" status for a specified number of seconds.

Example:

// Typing for 4 seconds
<<typing 4>>

upload_photo​

The upload_photo command sends the "Sending photo" status for a specified number of seconds.

Example:

// Sending photo for 4 seconds
<<upload_photo 4>>

record_voice​

The record_voice command sends the "Recording voice message" status for a specified number of seconds.

Example:

// Recording voice message for 4 seconds
<<record_voice 4>>

record_video_note​

The record_video_note command sends the "Recording video" status for a specified number of seconds.

Example:

// Recording video for 4 seconds
<<record_video_note 4>>

reaction​

The reaction command changes the reaction to an unexpected user message until the bot's next message.

Example:

// Change the reaction to an unexpected user message
<<reaction angry>>

Flow Commands​

jump​

The jump command sends the user to the specified node.

Example:

// Jump to the node my_first_node
<<jump my_first_node>>