SetJohnnyOnStartQuestEventHandler
From GECK
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 started. Formlists are also accepted as filters. When invoked, the script is passed with a single argument: a Quest that started.
Syntax
SetJohnnyOnStartQuestEventHandler setORremove:1/0 handlerScript:ref flag:int quest:filter
Or:
SetOnStartQuestEventHandler setORremove:1/0 handlerScript:ref flag:int quest:filter
Example
SetJohnnyOnStartQuestEventHandler 1 OnStartQuestUDF 0 rQuest
Sets the OnStartQuestUDF script as a handler to be invoked when rQuest is started.
SetJohnnyOnStartQuestEventHandler 0 OnStartQuestUDF 0 rQuest
Removes the OnStartQuestUDF 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.