Novelty guides and tutorials > Miscellaneous > Syntax formatting in text and dialogue

Syntax formatting

Novelty supports a number of commands that enables you to format your texts and inject script variables into them.

The commands are enclosed in brackets ([...]). To end a command, you prepend a forward slash ([/...]).

Note: Currently, the formatting syntax only applies to text objects using bitmap fonts.
All syntax commands are case insensitive.


Text color

Syntax:
[#RRGGBB] ... [/#]
[color=RRGGBB] ... [/color]

Example:

[#FF0000]Red text[/#]. [#00FF00]Green text[/#]. [#0000FF]Blue text[/#].

Result:

Red text. Green text. Blue text.


Text color (with opacity)

Syntax:
[#AARRGGBB] ... [/#]
[color=AARRGGBB] ... [/color]

Example:

[#80000000]Semitransparent text[/#].

Result:

Semitransparent text.


Text size

Syntax:
[size=Factor] ... [/size]

Example:

[size=2]Double size[/size]. Normal size. [size=0.5]Half size[/size].

Result:

Double size. Normal size. Half size.


Injecting script variables

If you wish to write out a variable that has been previously stored in the game's memory you can use the following syntax command.

Syntax:
[$VariableName]

The command will be replaced with the content of the variable. For instance, if you want the name of the person talking to be linked dynamically to a game variable, it would look something like this:



Back to top