by DilloDude » Fri Jul 21, 2006 4:46 am
Click on the 'variables' button in the script editor window. Click 'add'.
In the appropriate box, type the name of your variable. Then, choose whether it is integer, real, or string. Then choose whether it is a global or actor variable. Global variables are where there is one for the whole game, actor variables are ones that each actor has, like the defaults such as x, yvelocity, etc. Then choose if it is an array, and the size (an actor variable can't be an array). Arrays are a list of variables of the specified type, eg: array[0], array[3], etc. NOTE: if you set array size to 5, your array containers will be 0 - 4, not 1 - 5. If your variable is not an actor variable, you can put it in a save group if you want to save it. Then they can be saved and loaded with the saveVars and loadVars functions. When your done, click 'add'.