Stranded III is using several different data types in Lua. This section gives you a short overview over all used data types. Click the types for detailed descriptions and examples.
Basic values like numbers and texts.
- bool - a binary value which can only be true or false.
- byte - 8-bit unsigned integer number (0-255). In Lua it's represented by a number.
- int - 32-bit signed integer number. In Lua it's represented by a number.
- float - 32-bit floating-point number. In Lua it's represented by a number.
- double - 64-bit floating-point number. In Lua it's represented by a number.
- string - text consisting of an arbitrary number of characters.
Types which consist of multiple/complex values.
- table - list of key-value-pairs.
- vector2 - set of 2 numbers. Used for 2D positions/scales.
- vector3 - set of 3 numbers. Used for 3D positions/scales.
- vector4 - set of 4 numbers.
- quaternion - a rotation which can be represented as 3 or 4 numbers.
- color - a color. Can be represented in various different ways.
Used to refer to definitions. In most cases these can be declared either by using a string with the unique definition ID or by a number containing the internal definition index.