68 lines
2.3 KiB
Plaintext
68 lines
2.3 KiB
Plaintext
#include "events_include"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// header
|
|
//-----------------------------------------------------------------------------
|
|
//script: nwnx_td_events
|
|
//description: This is the event script for the nwnx_events.dll plugin
|
|
//used as: Event script
|
|
//date: 091004
|
|
//author: Terra
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Main
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void main( ){
|
|
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = GetNWNXEventTarget( );
|
|
int nEvent = GetNWNXEventType( );
|
|
|
|
switch( nEvent )
|
|
{
|
|
|
|
case EVENT_SAVE_CHAR:
|
|
ExecuteScript("reo_mod_save", OBJECT_SELF);
|
|
break;
|
|
case EVENT_PICKPOCKET:
|
|
ExecuteScript("reo_mod_pickpock", OBJECT_SELF);
|
|
break;
|
|
case EVENT_ATTACK:
|
|
ExecuteScript("reo_mod_attack", OBJECT_SELF);
|
|
break;
|
|
case EVENT_EXAMINE:
|
|
ExecuteScript("reo_mod_examine", OBJECT_SELF);
|
|
break;
|
|
case EVENT_TOGGLE_MODE:
|
|
ExecuteScript("reo_mod_toggmode", OBJECT_SELF);
|
|
break;
|
|
case EVENT_STEALTH_MODE:
|
|
ExecuteScript("reo_mod_stealth", OBJECT_SELF);
|
|
break;
|
|
case EVENT_DEVASTATING:
|
|
if( GetHasFeat( GetItemDevastatingCriticalFeat( oTarget ) ) )
|
|
{
|
|
SendMessageToPC( oPC, "NWNX knows you just had a devastating critical chance against "+GetName( GetAttackTarget( oPC ) )+"!" );
|
|
}
|
|
break;
|
|
case EVENT_UNPOLYMORPH:
|
|
SendMessageToPC( oPC, "NWNX knows you just unshifted!" );
|
|
break;
|
|
case EVENT_TRAPTRIGGER:
|
|
SendMessageToPC( oPC, "NWNX knows you just triggered "+GetName( oTarget )+"!" );
|
|
break;
|
|
case EVENT_ENDDIALOG:
|
|
SendMessageToPC( oPC, "NWNX knows you just escaped your dialog!" );
|
|
break;
|
|
case EVENT_ENDSANCTUARY:
|
|
SendMessageToPC( oPC, "NWNX knows you came out of sanctuary!" );
|
|
break;
|
|
default:
|
|
SendMessageToPC( oPC, "NWNX didnt know what you just did!" );
|
|
break;
|
|
}
|
|
|
|
//AssignCommand( oPC, ClearAllActions( TRUE ) );
|
|
}
|