PDA

View Full Version : How to Use a Creature's Events


tk102
01-26-2005, 08:47 AM
How to Use a Creature's Events
------------------------------------------

Creature Events are script triggers that fire when things to happen to a creature, such as when they get hit by a weapon, cast a force cast at them, or when they die. Rather than reinvent the wheel, most if not all of the pertinent information can be found in Bioware's scripting forums.

Specifically:

(read this first)
The UserDefined Event Is Your Friend (http://nwn.bioware.com/forums/viewcodepost.html?post=762559)
by David Gaider Friday, 05 July 2002 03:12AM

and

Using Creature Events (http://nwn.bioware.com/forums/viewcodepost.html?post=762682)
by David Gaider Friday, 05 July 2002 03:31AM

The generic OnSpawn script is k_def_spawn01.nss and the generic user-defined script is k_def_userdef01.nss both of which can be found in scripts.bif.