Plot:Global variable

From OHRRPGCE-Wiki

Jump to: navigation, search
global variable (id,name)

Creates a global variable that can be used in any script. The first argument to the global variable declaration is a unique ID number. The second argument is the name of the variable. The ID number for a global variable is a number from 0 to 1024. Each global variable must have a unique number, but this number will not conflict with the ID numbers you use for scripts. It is all right to have a script and a global variable with the same ID number. See also variable

[edit] Examples

# any script can read and set the value of a global
global variable(1,mini game score)
Personal tools