Globals.2da

Globals.2da contains list of global variables used in the scripts.

The 1st column determine the name of the global variables. The name should be unique, and it is not case sensitive. The 2nd column determine 'the address' of the global variable. The 3rd column determine the type.

There are 4 variable types that are supported: Each global variable type has own numbering set that determine their address, written at the 2nd column. Before adding new a global variable into the 2da files, we must check that there is no other variable with the same type that already had the same address.
 * Boolean (B at the 3rd column)
 * Integer (I at the 3rd column)
 * Float (F at the 3rd column)
 * Object (O at the 3rd column)

To write the value of the global variables, use SetGlobalBoolean, SetGlobalInt, SetGlobalFloat and SetGlobalObject operations, and to read the values, use : SetGlobalBoolean, SetGlobalInt, SetGlobalFloat and SetGlobalObject, according to the type of the variable. For Example, to read the value of J00_SILKFOX_ROMANCE (Boolean), use :

Statement: int bSilkRomance = GetGlobalBoolean("J00_SILKFOX_ROMANCE");