Let me warn you, it's a good thing I'm in a great mood. Most people would yell at you to read the manual. Here's the script, woah, wait, its a global variable???
For a variable, it would go like this:
But as far as I know you can't name Global Variables. But, the script for them goes like this:
SetGlobalInt(int globalvar, int value);
Where "int globalvar" is replaced with the # of your Global Variable, and "int value" is replaced with the value you wish to assign to your variable.