State Script

From NWN Lexicon
Revision as of 12:14, 19 January 2021 by Jasperre (talk | contribs) (Created page with "State scripts are fired as heartbeats for creatures under their effect. == statescript.2da == This 2da contains the state scripts to run under particular effects. == Script...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

State scripts are fired as heartbeats for creatures under their effect.

statescript.2da

This 2da contains the state scripts to run under particular effects.

Script Contents

For things like confusion (Random movement/attacks) or fear (moving away from enemies) it will set the person to commandable then do the action and set them to uncommandable.

For things where the creature just stands in place, Bioware uses it to have henchman heal their masters, although this isn't perfectly implemented.

Default Scripts