From NWN Lexicon
Jump to: navigation, search


The script attached to this event fires when the object becomes the target of a spell. This can include responses such as casting a spell of the object's own, dying, disappearing, getting stronger (absorbing the magical effect), etc.


A spell has been cast at the creature, door, or placeable object. It only fires when EventSpellCastAt is fired on the object.


DetermineCombatRound(object, int) for standard combat actions.


If a harmful spell has been cast on the creature and that creature is not already in combat, it becomes hostile.

Known Bugs

GetLastSpellCaster cannot return any area of effects which fire the event, and so may return OBJECT_INVALID. Not sure if this is intended, although Bioware's own Area of Effect reaction code in the event does take it into account and dispels the creatures own location.

See Also