Defensive casting mode

From NWN Lexicon
Jump to navigationJump to search

DEFENSIVE_CASTING_MODE_* Constant Group

Determines if a creature is casting a spell defensively so they suffer no attacks of opportunity.

You can enable this in AI scripts with SetActionMode and ACTION_MODE_DEFENSIVE_CAST.



Constants

Constant Value Description
DEFENSIVE_CASTING_MODE_ACTIVATED 1
Defensive casting mode is enabled; the creature won't suffer attacks of opportunity, but runs the risk of losing the spell completely if they cannot keep their concentraction.
DEFENSIVE_CASTING_MODE_DISABLED 0
Defensive casting mode is disabled; the creature will suffer attacks of opportunity when applicable.


See Also

functions: 

GetDefensiveCastingMode SetActionMode