Total event control
From NWNWiki
Total event control is an OSRS feature.
In any NWN module, any code is executed in the events, and no code is ever executed anywhere else. By capturing and controlling all scripts to these events, OSRS can treat each feature as separate and switchable.
This feature incurs a performance hit whose impact is not yet known.
[edit] Summary
This feature gives you the ability to wrap all of your NWScript procedures and scripts. All events for each object class are wrapped in OSRS.
[edit] Full description
- All events within the module are wrapped.
- Wrapping allows OSRS to control the operation of all scripts within the module into separate sets (groups of alike entities) called features.
- After this implementation, further changes to the code at the user-designer-implementor level can be included by calling the function ExecuteScript().
- This wrapper set allows a module developer to migrate an existing module to use the OSRS rules.
- Capturing every event in the module is guaranteed to completely cover all scripting activity that occurs in the module.
- This "event-wrapping" feature guarantees control over the entire scripted platform of a module.
- Each and every script necessary to control and accounted for the entire operation within the module is covered by the OSRS.
- Only the referenced OSRS code in the script osrs_inc is actually included in the compiled form.
- All events are redirected to function calls defined in the file
osrs_inc, therefore all OSRS feature relationship functionally comes from this script.
