Spoiler
Scriptname WoodcuttersWifeRespawnScript extends ActorGlobalVariable Property GameHour AutoFunction Enable (bool abFadeIn = false) nativeFunction Disable (bool abFadeOut = false) nativeFunction Resurrect() nativebool function isdead() nativebool function SpawnTime() if GameHour.GetValue() == 20.0 Self.Enable() Debug.Trace("Wakey wakey") endif if GameHour.GetValue() == 7.0 Self.Disable() Debug.Trace("Goodnight") endifendFunctionbool function ResurrectTime() if GameHour.getValue() >= 20.0 && self.isdead() self.resurrect() Debug.Trace("It's alive!") endif endfunction
Unfortunately nothing happens in game. The npc dosen't enable (and resurrect if need be) at 8pm, nor does she disable at 7am.
I added some debug.trace messages, tested, and checked the log. I found this:
[07/29/2012 - 02:06:22AM] warning: Variable ::gametime_var on script WoodcuttersWifeRespawnScript loaded from save not found within the actual object. This variable will be skipped.
I have no idea what this means nor how to alleviate it. Any help would be greatly appreciated.