Talk:OnReset - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Not received by quests?[edit source]

There appears to be some conflicting opinion on whether this is received by quests (see Notes section). Is it, or is it not? And if not, is that a bug or by design? Sirtaj (talk) 15:31, 9 November 2012 (EST)

Those contradictory notes bothered me too, so I tested it; as of 2012-12-15, running Quest.Stop() and Quest.Start() does NOT trigger Quest.OnReset(). Quest.Start() DOES however trigger Quest.OnInit(), at which time Quest.IsStarting()=FALSE and Quest.IsRunning()=TRUE (although perhaps that's a race condition and it might happen the other way? Not sure). When a new game first loads, Quest.OnInit() is also triggered, but at that time Quest.IsRunning()=FALSE. Taleden (talk) 10:56, 15 December 2012 (EST)

I'd hardly be surprised that it doesn't trigger OnReset() since that's not even in Quest.psc OR in Alias.psc so the event can't even exist, much less be triggered, since OnReset() only exists in ObjectReference.psc and neither of these others extend that. Arthmoor (talk) 2013-12-07T16:50:28 (EST)

Uh. Stranger still though, OnReset() will compile without complaint in a script extending either Quest or Alias, even though neither one has a definition for OnReset() listed. Anyone else confused? :P Arthmoor (talk) 2013-12-07T16:57:03 (EST)