X0 inc states

From NWN Lexicon
Jump to: navigation, search



x0_inc_states

Determines and stores the behavior of the associates used by the PC. <br /><br />NOTE: This file contains several constants and functions that are also present in x0_i0_assoc. In general, x0_i0_assoc is more useful.

Constants

Name Value Brief Description
NW_ASC_AGGRESSIVE_BUFF 0x00000040 Auto AI.
NW_ASC_AGGRESSIVE_SEARCH 0x00000080 Auto AI.
NW_ASC_AGGRESSIVE_STEALTH 0x00000100 Auto AI.
NW_ASC_DISARM_TRAPS 0x00004000
NW_ASC_DISTANCE_2_METERS 0x00000001 Distance.
NW_ASC_DISTANCE_4_METERS 0x00000002 Distance.
NW_ASC_DISTANCE_6_METERS 0x00000004 Distance.
NW_ASC_HAVE_MASTER 0x80000000 Not actually used, here for system continuity.
NW_ASC_HEAL_AT_25 0x00000020 Heal when.
NW_ASC_HEAL_AT_50 0x00000010 Heal when.
NW_ASC_HEAL_AT_75 0x00000008 Heal when.
NW_ASC_IS_BUSY 0x40000000 Only busy if attempting to bash or pick a lock.
NW_ASC_MASTER_GONE 0x10000000
NW_ASC_MASTER_REVOKED 0x20000000
NW_ASC_OVERKIll_CASTING 0x00000400 Casting power. GetMax Spell.
NW_ASC_POWER_CASTING 0x00000800 Casting power. Get Double CR or max 4 casting.
NW_ASC_RETRY_OPEN_LOCKS 0x00000200 Open Locks on master fail.
NW_ASC_SCALED_CASTING 0x00001000 Casting power. CR + 4.
NW_ASC_USE_CUSTOM_DIALOGUE 0x00002000
NW_ASC_MODE_DEFEND_MASTER 0x04000000 Guard Me Mode, Attack Nearest sets this to FALSE.
NW_ASC_MODE_STAND_GROUND 0x08000000 The Henchman will ignore move to object in the heartbeat.

If this is set to FALSE then they are in follow mode.
NW_ASC_USE_RANGED_WEAPON 0x00008000


Functions

Name Brief Description
GetAssociateState

Internal function. Returns the behavior of an associate.

NOTE: This function also exists in x0_i0_assoc . It has slightly different behavior in that file than this one.

SetAssociateState

Internal function. Changes the behavior of an associate. Specifically as it relates to the flag NW_ASSOCIATE_MASTER.

NOTE: This function also exists in x0_i0_assoc . It has slightly different behavior in that file than this one.



  author: Mistress