Provides hooks for the following events:
* PickPocket
- oCreature
- oTarget
(this action can be blocked from script)
* Attack
- oCreature
- oTarget
* UseItem
- oCreature
- oTarget
- oItem
- vPosition
(this action can be blocked from script)
Provides functions for conditional and action scripts:
int GetCurrentNodeType();
int GetCurrentNodeID();
int GetCurrentAbsoluteNodeID();
string GetCurrentNodeText(int nLangID, int nGender);
void SetCurrentNodeText(string sText, int nLangID, int nGender);
int GetSelectedNodeID();
int GetSelectedAbsoluteNodeID();
string GetSelectedNodeText(int nLangID, int nGender);
See the Demo module for examples.
The default event script name is vir_events.
To set custom script name, add the following lines to your nwnx2.ini file:
--
[EVENTS]
event_script=<your script name>
--
Example script and demo module are included.