Skip to content

blockfiles

purkkafi edited this page Apr 11, 2023 · 3 revisions

The engine is designed to be multilingual by default; as such, scriptfiles (see scriptfile reference) do not contain prose. It is instead stored in blockfiles in the assets/lang/<language id>/text/ folder of every language. The filename of the blockfile, without the extension, is known as the blockfile id.

Structure

Every blockfile consists of block declarations, which map a block id to its corresponding text block.

\block{<block id>}{
   ...
}

Each text block is made of one or more lines. Whitespace is handled intelligently; indentation is stripped away, and each sequence of repeated newlines turns into a single line break.

Available formatting

The engine uses Godot's RichTextBlock internally, and BBCode may be used directly. There is also support for the following tags:

\b{...}

Bolds text.

\i{...}

Makes text italic.

\erase{...}

The text enclosed in the tag is, after being shown, stripped away character by character. This creates the appearance of typed text being erased with the backspace key.

\<speaker id>{...}

Displays text as dialog said by the given speaker. Note that not every View supports speakers; out of the default Views, ADV Mode does and NVL Mode doesn't.

Clone this wiki locally