ACTION_MODE_* Constant Group

From NWN Lexicon
Jump to: navigation, search
Red bug icon.png Warning: This function has a known bug and may not work as expected in some situations. See Known Bugs for details.

Action modes a creature can enter. Used with SetActionMode() and GetActionMode().

These are also used in the OnUserDefined event where the game will send event 20000 + ACTION_MODE_* ID when a master toggles a mode. This is hardcoded into the game.

Constants

Constant Value Description
ACTION_MODE_COUNTERSPELL 5 Counterspell mode.
ACTION_MODE_DEFENSIVE_CAST 10 Defensive casting mode.
ACTION_MODE_DETECT 0 Detect mode.
ACTION_MODE_DIRTY_FIGHTING 11 Dirty fighting mode.
ACTION_MODE_EXPERTISE 8 Expertise mode.
ACTION_MODE_FLURRY_OF_BLOWS 6 Flurry of blows mode.
ACTION_MODE_IMPROVED_EXPERTISE 9 Improved expertise mode.
ACTION_MODE_IMPROVED_POWER_ATTACK 4 Improved power attack mode.
ACTION_MODE_PARRY 2 Parry mode.
ACTION_MODE_POWER_ATTACK 3 Power attack mode.
ACTION_MODE_RAPID_SHOT 7 Rapid shot mode.
ACTION_MODE_STEALTH 1 Stealth mode.

Known Bugs

The mode for defensive stance is not included in nwscript.nss. A sample definition would be:

int ACTION_MODE_DEFENSIVE_STANCE = 12;

See Also

functions:  GetActionMode, SetActionMode