Event partitioning

Event partitioning is the term applied to the slicing of each module event into three distinct time phases: Pre-event, During-event, and Post-event.

At the OSRS feature management level, this functionality allows a programmer to execute custom code before or after NWN actually processes the event.

Pre-event functionality allows a programmer to test conditions and abort the rest of the event from being handled before the other two phases occur.

Post-event functionality allows a programmer to clean up or otherwise perform customized house-keeping tasks after the NWN game engine has processed the events.

Each phase of each event is handled with a scripted function.

All non-post-phase scripts return TRUE or FALSE to indicate success or failure and give teh caller an option to bail out from executing undesired code after it's subphase in that event.

Pre- and Post- phase event functions are the property of the Users. All Pre- and Post-Event are owned by the User.

The During Event is reserved for OSRS.

OSRS respects your actions in your functions, while you respect all programming in OSRS functions.