3.2 Data Tables

 

Data tables contain large (static) sets of data, that would be a clutter to store in a script. They are located under the "data" directory.

 

Two sections make up a data table.

The first section, the definition section or header, includes enum values and static defines. Such values are prefixed with "#".

Definitions first contain the name, then a space and then the value.

#group.sword 0

The second section contains the data split into entries and rows.

Each entry starts with a text label and the index number.

.tin_sword 0

Afterwards the values are listed. Values are either integers or strings and seperated by newlines.

Whitespace infront of the value as well as trailing whitespace is ignored to allow for indent.

Additionally, definitions (#) and language file definitions (prefixed with "$") can be used.

$tin_sword.name

Go back