changevarglobal
The changevar command is used to change a global variable that is used by the scripting system.



"then(changevarglobal,variable, method of change, value)"


Argument Function
variable The stored global variable that is being changed. (Must be initalized previously!)
method of change The method in which the variable is being changed. (+, -, =, *, /)
value The change that is occuring.



And example of the changevarglobal command used in a script is as follows...




The following script increases a global hit counter whenever the block is damaged.


if(takedamage)
{
then(changevarglobal,counter,+,1)
}