Skip to content

Message control codes

glitchroy edited this page Oct 12, 2019 · 14 revisions

Contents


Events

Pause

Pauses the text typewriter for number seconds.

Reference

[pause,<number>]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Stop![pause,0.5] Wait a second![pause,1] Huh."),
  /* ... */
]);

Speed

Changes the text speed. A higher number corresponds to a higher typewriter speed. The default can be changed in the config.

Reference

[speed,<number>]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Let's talk [speed,0.1]slowly[]."),
  /* ... */
]);

Wait

Waits for the user to press the advance key before continuing showing the message.

Reference

[wait]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Stop.[wait] Wait a minute."),
  /* ... */
]);

Formatting commands

Reset

Resets all effects.

Reference

[]

Example

tby_branch_create([
  /* ... */
  tby_add_box("[c_red]I'm red![] I'm default!"),
  /* ... */
]);

Font

Changes the font used.

Reference

Set

[<font_name>]

Unset

[/font] or [/f]

Example

tby_branch_create([
  /* ... */
  tby_add_box("I look [newFont]different somehow...[/f]!"),
  /* ... */
]);

Color

Changes the text color.

Reference

Set

[c_<color>] or [#HEXCODE_IN_RGB]

Unset

[/color] or [/c]

Example

tby_branch_create([
  /* ... */
  tby_add_box("I can't [c_red]believe it[/c]!"),
  /* ... */
]);

Sprite

Insert a static sprite using the specified image index.

Reference

[<name_of_sprite>,<image_index>]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Cool sprites! [sprMySprite,0]"),
  /* ... */
]);

Alignment

Aligns text to the left, right or center.

Reference

[fa_left] or [fa_center] or [fa_right]

Example

tby_branch_create([
  /* ... */
  tby_add_box("[fa_right]I'm right!"),
  /* ... */
]);

Further formatting commands

  • Scale
  • Slant

Formatting flags

Rainbow

Colors the text in a moving rainbow pattern.

Reference

Set

[rainbow]

Unset

[/rainbow]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Everything is [rainbow]awesome[/rainbow]!"),
  /* ... */
]);

Shake

Draws the text in a shaky fashion. Strength can be adjusted on a per-branch level. The default can also be changed in the config.

Reference

Set

[shake]

Unset

[/shake]

Example

tby_branch_create([
  /* ... */
  tby_add_box("[shake]I'm scared![/shake]"),
  /* ... */
]);

Wave

Draws the text in a moving wave form. Strength and Frequency can be adjusted on a per-branch level. The default can also be changed in the config.

Reference

Set

[wave]

Unset

[/wave]

Example

tby_branch_create([
  /* ... */
  tby_add_box("Why, [wave]hello there[/wave]..."),
  /* ... */
]);

textboxy

                        

Examples

                        

Technical overview

                        

Clone this wiki locally