SetJohnnyOnStopQuestEventHandler
From GECK
(Redirected from SetOnStopQuestEventHandler)
A function added by the JohnnyGuitar NVSE Plugin.
Description
Sets/removes the specified UDF Script as a handler that will be invoked when a specified Quest (or any Quest) is stopped. Formlists are also accepted as filters. When invoked, the script is passed with a single argument: a Quest that stopped running.
Syntax
SetJohnnyOnStopQuestEventHandler setORremove:1/0 handlerScript:ref flag:int quest:filter
Or:
SetOnStopQuestEventHandler setORremove:1/0 handlerScript:ref flag:int quest:filter
Example
SetJohnnyOnStopQuestEventHandler 1 OnStopQuestUDF 0 rQuest
Sets the OnStopQuestUDF script as a handler to be invoked when rQuest is stopped.
SetJohnnyOnStopQuestEventHandler 0 OnStartQuestUDF 0 rQuest
Removes the OnStopQuestUDF script as a handler of the above.
Handler Script
A skeleton handler script for this event:
scn OnStartQuestUDF ref rQuest begin Function {rQuest} ... end
Notes
- Flag argument is reserved for future use and should always be 0.