Types

Constants

All integers are stored as signed 32-bit numbers. They can be written in any of the following forms

BaseExample
Decimal523
Binary0b100110
Octal0o1342172
Hexadecimal0x41414141

Fractional numbers are interpreted as 32-bit floating point numbers. They are converted to fixed-point numbers with a scaling factor of 1024 during compilation.

Variables

NameSizeDescription
Var0x10Variables local to the current script
Flag0x60Flags local to the current script
MapVar0x10Global variables cleared upon map transition
MapFlag0x60Global flags cleared upon map transition
AreaByte0x10Bytes stored in save file. Cleared upon area transition
AreaFlag0x100Flags stored in save file. Cleared upon area transition
GameByte0x200Bytes stored in save file. Never cleared
GameFlag0x800Flags stored in save file. Never cleared
Array-Current script array. Must be assigned before use
FlagArray-Current script flag array. Must be assigned before use
Buffer-Current script buffer. Must be assigned before use