Category:Events

From NWN Lexicon
Revision as of 15:08, 21 November 2020 by Jasperre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Objects with Events

Objects with events are those objects that make up the bulk of NWN. By giving these objects events, the programmers of NWN allow script writers to interact and respond with PCs and other objects by assigning different scripts to each event.

Order of Events Note

There are several events that have a specific order that may be worth noting. For a Player entering a module it will do this:

  1. OnAcquireItem (clothing)
  2. OnPlayerEquipItem (clothing)
    1. [repeat for all inventory items in slot order]
  3. OnClientEnter
  4. Area OnEnter

Objects

Area

Creature

Door

Encounter

Merchant

Module

Placeable Object

Trap

Trigger