I've spent the past few days struggling with Papyrus. I'm trying to make a script that ties the transformations of a werewolf to the moon, and mostly failing, and I've managed to track down the reason, using debug functions, to the Global Variables I'm referencing in the script (it's a quest script), in this case PlayerIsWerewolf, GameHour, and GameDaysPassed; No matter what I do or how I change the script, all of the global variables return as 0. No matter what I do, how I change the script, or what I do with the properties, they won't return as anything other than zero, as evidenced by a notification I put in the script that returns the value of the property recording GameHour ( TimeOfDay ) every second; it doesn't change at all.
I'm positive the script is actually running, since the notification always comes in, and otherwise it seems to be running as intended, excluding of course everything that's dependent on the global variables.
If anyone has found a way to get a script to return the actual value of a global variable, I'd very much appreciate your help. I looked through the wiki, double checked my syntax, everything I could think of, and still its not working.
PS: Before you ask, I configured the script's properties in the property window to reference the correct variables, so that's not the problem, though I initially thought it was.