Event

From NWN Lexicon
Jump to: navigation, search

EVENT_* Constant Group

User-defined event codes.

These are not actually used by the game engine and are essentially made up numbers. They were included in later versions of nwscript.nss presumably as shortcuts for Bioware to remember what their own creature AI SignalEvent should fire for each one. Note there is no version for On Spawn, On Rested, On Blocked or On Death (although user defined On Death events can sometimes be weird).



Constants

Constant Value Description
EVENT_ATTACKED 1005
OnPhysicalAttacked event.
EVENT_DAMAGED 1006
OnDamaged event.
EVENT_DIALOGUE 1004
OnConversation event.
EVENT_DISTURBED 1008
OnDisturbed event.
EVENT_END_COMBAT_ROUND 1003
OnCombatRoundEnd event.
EVENT_HEARTBEAT 1001
OnHeardbeat event.
EVENT_PERCEIVE 1002
OnPerception event.
EVENT_SPELL_CAST_AT 1011
OnSpellCastAt event.


See Also

functions:

SignalEvent EventUserDefined

events:

OnUserDefined Event