Convert

Signatures

string convert(string text)
string convert(string text, s32 language)
string convert(string text, s32 language, bool extended)

Description

Converts text to the game's format.

The conversion supports text tags such as speed, color, and more to further style the text.

Arguments

Text

The UTF-8 formatted text that will be converted.

Language

The character table that will be used for the conversion.

Identifier
Name

0

English, French, Italian, German, Spanish

1

Japanese

2

Korean

3

Simplified Chinese

4

Traditional Chinese

Extended

If set to true, text will be converted to the (menu specific) ex format instead.

Notes

To minimize the computational overhead of converting texts, precompiling the text in advance allows it to be reused efficiently. Once precompiled, the text behaves like a regular string and can be concatenated, manipulated, or used as needed.

For a list of text tags, you can view the spreadsheet in Resources.

Last updated