I thought that, but that's the example from the page; but I think I am just misunderstanding it, anyway... :S
Unfortunately the wiki page example had a small bug – the http://www.creationkit.com/GetValue_-_GlobalVariable function returns a float, not an int (You can see that in the “Syntax” part of the page). I’ve gone ahead and fixed up the wiki page example already, but what you’ll want is the following:
float timeOfDay = TimeOfDayGlobalProperty.GetValue()
If you really want an integer and don’t mind losing the floating-point part of the global variable (probably not the best idea with time of day, but you might want it for something else), you can either cast the result to an int, or use the http://www.creationkit.com/GetValueInt_-_GlobalVariable function instead – both of which trim the value of the global to the nearest whole number.
; Castingint myGlobalValue = http://forums.bethsoft.com/topic/1343528-how-to-get-globals/MyGlobal.GetValue() as int; GetValueIntInt myGlobalValue2 = MyGlobal.GetValueInt()
Also, for ease of use, you can use the http://www.creationkit.com/GlobalVariable_Script#Properties on globals to get or set the floating point value with less typing:
float timeOfDay = TimeOfDayGlobalProperty.value
Note that all of the above examples assume you’ve pointed the property at the correct global in the editor wherever you’ve attached the script.
A developer just fixed this on the wiki. Perhaps they were watching

Cipscis
