x0_inc_states

Determines and stores the behavior of the associates used by the PC.

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

NameValueBrief Description
NW_ASC_AGGRESSIVE_BUFF0x00000040Auto AI.
NW_ASC_AGGRESSIVE_SEARCH0x00000080Auto AI.
NW_ASC_AGGRESSIVE_STEALTH0x00000100Auto AI.
NW_ASC_DISARM_TRAPS0x00004000
NW_ASC_DISTANCE_2_METERS0x00000001Distance.
NW_ASC_DISTANCE_4_METERS0x00000002Distance.
NW_ASC_DISTANCE_6_METERS0x00000004Distance.
NW_ASC_HAVE_MASTER0x80000000Not actually used, here for system continuity.
NW_ASC_HEAL_AT_250x00000020Heal when.
NW_ASC_HEAL_AT_500x00000010Heal when.
NW_ASC_HEAL_AT_750x00000008Heal when.
NW_ASC_IS_BUSY0x40000000Only busy if attempting to bash or pick a lock.
NW_ASC_MASTER_GONE0x10000000
NW_ASC_MASTER_REVOKED0x20000000
NW_ASC_OVERKIll_CASTING0x00000400Casting power. GetMax Spell.
NW_ASC_POWER_CASTING0x00000800Casting power. Get Double CR or max 4 casting.
NW_ASC_RETRY_OPEN_LOCKS0x00000200Open Locks on master fail.
NW_ASC_SCALED_CASTING0x00001000Casting power. CR + 4.
NW_ASC_USE_CUSTOM_DIALOGUE0x00002000
NW_ASC_MODE_DEFEND_MASTER0x04000000Guard Me Mode, Attack Nearest sets this to FALSE.
NW_ASC_MODE_STAND_GROUND0x08000000The 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_WEAPON0x00008000

Functions

NameBrief Description
GetAssociateStateInternal 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.
SetAssociateStateInternal 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