x0_i0_assoc

Generic code for associates.

NOTE: This file contains several constants and functions that are also present in x0_inc_states. In general, this file is more useful than x0_inc_states.

Constants

NameValueBrief Description
CLEAR_DEBUGFALSE
CLEAR_NW_C2_DEFAULT4_293
CLEAR_NW_C2_DEFAULTB_GUSTWIND4
CLEAR_NW_CH_AC1_495
CLEAR_NW_CH_AC1_816
CLEAR_NW_CH_AC4_287
CLEAR_NW_I0_GENERIC_6588
CLEAR_NW_I0_GENERIC_8349
CLEAR_NW_I0_GENERIC_DetermineSpecialBehavior111
CLEAR_NW_I0_GENERIC_DetermineSpecialBehavior212
CLEAR_NW_I0_GENERIC_ExitAOESpellArea10
CLEAR_X0_CH_HEN_CONV_2613
CLEAR_X0_CH_HEN_USRDEF_9114
CLEAR_X0_CH_HEN_USRDEF_9215
CLEAR_X0_I0_ANIMS_AnimActionChallengeIntruder29
CLEAR_X0_I0_ANIMS_AnimActionGetUpFromChair23
CLEAR_X0_I0_ANIMS_AnimActionGoToStop24
CLEAR_X0_I0_ANIMS_AnimActionLeaveHome28
CLEAR_X0_I0_ANIMS_AnimActionPlayRandomMobile120
CLEAR_X0_I0_ANIMS_AnimActionPlayRandomMobile221
CLEAR_X0_I0_ANIMS_AnimActionPlayRandomUncivilized22
CLEAR_X0_I0_ANIMS_AnimActionRest125
CLEAR_X0_I0_ANIMS_AnimActionRest226
CLEAR_X0_I0_ANIMS_GoHome27
CLEAR_X0_I0_ANIMS_PlayMobile16
CLEAR_X0_I0_ANIMS_PlayRandomCloseRange118
CLEAR_X0_I0_ANIMS_PlayRandomCloseRange219
CLEAR_X0_I0_ANIMS_PlayRandomMobile17
CLEAR_X0_I0_ASSOC_RESETHENCHMENSTATE2
CLEAR_X0_I0_COMBAT_SpecialTacticsAmbusher33
CLEAR_X0_I0_COMBAT_SpecialTacticsCowardly134
CLEAR_X0_I0_COMBAT_SpecialTacticsCowardly235
CLEAR_X0_I0_COMBAT_SpecialTacticsRanged130
CLEAR_X0_I0_COMBAT_SpecialTacticsRanged231
CLEAR_X0_I0_COMBAT_SpecialTacticsRanged332
CLEAR_X0_I0_EQUIP_EquipAppropriateWeapons136
CLEAR_X0_I0_EQUIP_EquipAppropriateWeapons237
CLEAR_X0_I0_EQUIP_EquipMelee138
CLEAR_X0_I0_EQUIP_EquipMelee239
CLEAR_X0_I0_EQUIP_EquipMelee340
CLEAR_X0_I0_HENCHMAN_Fire41
CLEAR_X0_I0_HENCHMAN_LevelUp42
CLEAR_X0_I0_HENCHMAN_PreRespawn71
CLEAR_X0_I0_TALENT_AdvancedBuff49
CLEAR_X0_I0_TALENT_BardSong51
CLEAR_X0_I0_TALENT_MeleeAttack146
CLEAR_X0_I0_TALENT_MeleeAttack247
CLEAR_X0_I0_TALENT_RangedAttackers44
CLEAR_X0_I0_TALENT_RangedEnemies68
CLEAR_X0_I0_TALENT_SeeInvisible50
CLEAR_X0_I0_TALENT_SummonAllies45
CLEAR_X0_I0_TALENT_TalentFlee69
CLEAR_X0_I0_TALENT_TalentFlee248
CLEAR_X0_I0_TALENT_UseTurning70
CLEAR_X0_I0_WALKWAY_WalkWayPoints52
CLEAR_X0_INC_GENERIC_TalentFilter43
CLEAR_X0_INC_HENAI_AttemptToDisarmTrap54
CLEAR_X0_INC_HENAI_AttemptToOpenLock155
CLEAR_X0_INC_HENAI_AttemptToOpenLock256
CLEAR_X0_INC_HENAI_AttemptToOpenLock357
CLEAR_X0_INC_HENAI_BKATTEMPTTODISARMTRAP_ThrowSelfOnTrap1
CLEAR_X0_INC_HENAI_Combat64
CLEAR_X0_INC_HENAI_CombatAttemptHeal65
CLEAR_X0_INC_HENAI_CombatAttemptHeal162
CLEAR_X0_INC_HENAI_CombatAttemptHeal263
CLEAR_X0_INC_HENAI_CombatFollowMaster166
CLEAR_X0_INC_HENAI_CombatFollowMaster267
CLEAR_X0_INC_HENAI_HCR53
CLEAR_X0_INC_HENAI_RespondToShout158
CLEAR_X0_INC_HENAI_RespondToShout259
CLEAR_X0_INC_HENAI_RespondToShout360
CLEAR_X0_INC_HENAI_RespondToShout461
NW_ASC_AGGRESSIVE_BUFF0x00000040
NW_ASC_AGGRESSIVE_SEARCH0x00000080
NW_ASC_AGGRESSIVE_STEALTH0x00000100
NW_ASC_DISARM_TRAPS0x00004000
NW_ASC_DISTANCE_2_METERS0x00000001
NW_ASC_DISTANCE_4_METERS0x00000002
NW_ASC_DISTANCE_6_METERS0x00000004
NW_ASC_HAVE_MASTER0x80000000
NW_ASC_HEAL_AT_250x00000020
NW_ASC_HEAL_AT_500x00000010
NW_ASC_HEAL_AT_750x00000008
NW_ASC_IS_BUSY0x40000000
NW_ASC_MASTER_GONE0x10000000
NW_ASC_MASTER_REVOKED0x20000000
NW_ASC_MODE_DEFEND_MASTER0x04000000
NW_ASC_MODE_DYING0x00010000
NW_ASC_MODE_STAND_GROUND0x08000000
NW_ASC_OVERKIll_CASTING0x00000400
NW_ASC_POWER_CASTING0x00000800
NW_ASC_RETRY_OPEN_LOCKS0x00000200
NW_ASC_SCALED_CASTING0x00001000
NW_ASC_USE_CUSTOM_DIALOGUE0x00002000
NW_ASC_USE_RANGED_WEAPON0x00008000
sAssociateMasterConditionVarnameNW_ASSOCIATE_MASTER

Functions

NameBrief Description
AssociateCheckChecks whether an object is an henchman or not.
ClearActionsThis is a wrapper for ClearAllActions.
GetAssociateHealMasterReturns TRUE if the associate should attempt to heal the master.
GetAssociateStartLocationGets the start location of an NPC associate.
GetAssociateStateReturns TRUE if the specified condition flag is set on the associate.
GetFollowDistanceDetermines the distance in meters that the associate should follow its 'master' at.
GetPercentageHPLossDetermines how wounded a creature is as a percentage of their maximum HP.
ResetHenchmenStateHenchman becomes available for other instructions by PC.
SetAssociateStartLocationSets the associate's current location as their start location.
SetAssociateStateChanges the behavior of an associate.


  author: Mistress