OSRS build 0
From NWNWiki
OSRS build 0 is the first prototype release of the Open Source Rule Set (OSRS), providing basic feature management of scripts. This build primarily deals with event handling.
Contents |
[edit] Current status
OSRS build 0 has been released as a module for testing and feedback: OSRS_000_09.mod (387KB, not compressed).
[edit] Features
This OSRS build includes the following (completed) OSRS features.
- Event partitioning
- This feature partitions all module events into three time phases — pre-event, during-event, and post-event.
- Feature management
- This feature manages all other features in OSRS.
- NWN basic creature scripts
- This feature causes creatures to act as they did in the original NWN release (with no expansion packs installed).
- NWN X2 creature scripts
- This feature causes creatures to act as they did after Hordes of the Underdark was released.
- NWN X2 door scripts
- This feature causes doors to use the death script that came with Hordes of the Underdark.
- Total event control
- This feature captures and controls all module events.
[edit] Installing
The module gets placed in the modules directory so that it can be opened in the Toolset. From within the Toolset, it is possible to export all the scripts to an .erf file, which then gets imported into whatever module is being modified to make use of OSRS. Alternately, if a new module is being created, the OSRS_000_09 module can be used as a starting point.
[edit] Using
The first step in using OSRS is to modify all the objects in a module so that they use the OSRS scripts. This can involve editing a large number of objects in an existing module. For new modules, it would be best to create blueprints for creatures, placeables, traps, and triggers with the OSRS scripts, then create all instances from those custom blueprints.
Module: In the module's properties, set the event handlers (the "Events" tab) to the OSRS scripts:
Areas: In each area's properties, set the event handlers (the "Events" tab) to the OSRS scripts:
Triggers: In each trigger's properties, set the event handlers (the "Scripts" tab) to the OSRS scripts:
Placeables: In each placeable's properties, set the event handlers (the "Scripts" tab) to the OSRS scripts:
Traps: In each trap's properties, set the event handlers (the "Trap" tab) to the OSRS scripts:
Creatures: In each creature's properties, set the event handlers (the "Scripts" tab) to the OSRS scripts:
The next step is to save the module, preferably under a new name so the original version can be restored if needed. Finally, the module should be rebuilt.
