Skip to content

Dialog Parameters

Change current parameters of the dialog box appearance and behavior.

Syntax

dialog <offset, scale, padding, width, textColor, backgroundColor, gap, letterSpacing, unSkippable, autoSkip, bobbing> [%value1%] [%value2%]

Parameters and Descriptions

  • offset (float, float): Adjusts the x,y position of the dialog box from his initial position.

  • scale (float): Changes the size scale of the dialog box. Default is 1.

  • padding (float): Sets the padding inside the dialog box around the text.

  • width (int): Sets the width of the dialog box in pixels.

  • textColor (hex value): Changes the text color of the dialog box.

  • backgroundColor (hex value): Changes the background color of the dialog box.

  • gap (float): Sets the gap between dialog texts.

  • letterSpacing (float): Adjusts spacing between letters.

  • unSkippable (boolean): Makes the dialog impossible for the player to skip.

  • autoSkip (float): Automatically skips dialog after the given seconds once finished.

  • bobbing (float, float): Adds bobbing animation with speed and strength parameters.

Example

dialog offset -1 0.7
Moves the dialog up by 1 and move to the right by 0.7.

dialog scale 1.3
Increases dialog box size by 30%.

dialog backgroundColor K862J5
Sets dialog background color to hex code "K862J5".

dialog bobbing 200 150
Adds bobbing animation with speed 200 and strength 150.

dialog unSkippable
Makes the dialog unskippable by the player.

dialog autoSkip 2
Dialog automatically skips 2 seconds after finishing.