I think there is a tutorial on variables in the unoffical guide, but to sumarise:
There are 99 global variables already declared for you to use in your scripts
globalvar= tells the script which global variable you want to test or modify.
varequal=,varless, etc. perform tests on the global variable.
setvar=,incvar,decvar=, etc. modify the global variable.
For example:
:state=0:globalvar=53,setvar=5
This makes global variable 53 equal to 5.
:state=0:globalvar=44
:state=0,varequal=6:setvar=0
This sets global variable 44 to 0 if it originally equalled 6.
I hope that makes sense to you.
[url="http://raptr.com/No_Turn_Right?src=em_forum"]
[/url]