State Script

From NWN Lexicon
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. Some are bugged:

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

You can find more information on this 2da on this wiki page.