char

single character: 'a' , 'A', '5', '$', '\n'

double

double precision floating point number: 3.141592653589793

dyna

dynamic type. assignment determines current type

float

floating point number: 3.141592

frame

frame number

int

integer: 1; -3; 17,190; -45

int64

64 bit integer: - 2,305,843,009,213,693,951 to 2,305,843,009,213,693,952

object

messiah scene object: Camera, Null_1, BoneDeform1

string

a letter, word, sentence, paragraph etc. : "Hello"; "a", "a;lw4#390q0294@@"

time

time in seconds

vec

 

vec3

 

vec4

 

vecd3

vector of three doubles

vecd4

vector of four doubles

vecf3

vector of three floats

vecf4

vector of four floats

veci3

vector of three ints

veci4

vector of four ints

void

not currently supported

These are the currently supported data types in messiah:script.  As described in Variables, these names are used to specify the type of a variable when it is declared, or to specify the type of return value from a function or the types of the arguments that it accepts.

All of the above types are static (that is the types are static or "don't change", not to be confused with static storage described in Variables) except for 'dyna'.  The 'dyna' type can change it's underlying type based on the value that gets assigned to it:

dyna a = 3.14; // a is a double
a = "test"; // now it's a string
a = CurObj(); // now it's an object

Wow, 'dyna's really cool! Why would you need any of the other types?  Because they're a lot more efficient.  Since 'dyna' can't make any assumptions about the type it refers to it can't user a lot of the optimizations that the other types can.  In general you should avoid 'dyna', use it only when it will really be convenient.

Converted from CHM to HTML with chm2web Pro 2.82 (unicode)