SetJohnnySeenDataEventHandler
From GECK
(Redirected from SetSeenDataEventHandler)
A function added by the JohnnyGuitar NVSE Plugin.
Description
The function currently conflicts with JIP Minimap. The event will not fire if the user has it installed.
Sets/removes the specified UDF Script as a handler that will be invoked when a specified Cell (or any Cell) is marked as seen. Formlists are also accepted as filters.
When invoked, the script is passed with a single argument: a seen Cell.
Syntax
SetJohnnySeenDataEventHandler setORremove:1/0 handlerScript:ref flag:int cell:filter
Or:
SetSeenDataEventHandler setORremove:1/0 handlerScript:ref flag:int cell:filter
Example
SetJohnnySeenDataEventHandler 1 OnSeenDataUDF 0 rCell
Sets the OnSeenDataUDF script as a handler to be invoked when rCell is marked as seen.
SetJohnnySeenDataEventHandler 0 OnSeenDataUDF 0 rCell
Removes the OnSeenDataUDF script as a handler of the above.
Handler Script
A skeleton handler script for this event:
scn OnSeenDataUDF ref rCell begin Function {rCell} ... end
Notes
- Flag argument is reserved for future use and should always be 0.