nw_i0_generic

Contains a slew of useful functions.

NOTE: This file includes x0_i0_anims and x0_i0_behavior.

Constants

NameValueBrief Description
chooseTactics_MEMORY_DEFENSE_OTHERS1
chooseTactics_MEMORY_DEFENSE_SELF2
chooseTactics_MEMORY_OFFENSE_MELEE0
chooseTactics_MEMORY_OFFENSE_SPELL3
NW_GENERIC_FLEE_EXIT_FLEE0
NW_GENERIC_FLEE_EXIT_RETURN1
NW_GENERIC_FLEE_TELEPORT_FLEE2
NW_GENERIC_FLEE_TELEPORT_RETURN3
NW_GENERIC_SHOUT_BACK_UP_NEEDED13
NW_GENERIC_SHOUT_BLOCKER2
NW_GENERIC_SHOUT_I_AM_DEAD12
NW_GENERIC_SHOUT_I_WAS_ATTACKED1


Functions

NameBrief Description
__InCombatRoundInternal function. Tests to see if already running a determine combat round this round.
__TurnCombatRoundOnInternal function. Will set the exclusion variable on whether in combat or not.
ActivateFleeToExitCauses a creature to run to its exit waypoint and disappear.
AdjustBehaviorVariableInternal function. Overriding "behavior" variables. If a variable has been stored on the creature it overrides the class defaults.
BashDoorCheckUsed in DetermineCombatRound to keep henchmen bashing doors.
CheckIsUnlockedPlays voice chat messages that indicates the locked status of a door or placeable.
chooseTacticsDetermines class-specific tactics.
CreateSignPostNPCSpawns a creature using the action queue.
DetermineClassToUseLooks at the character classes of a NPC and determines which one to use in combat.
DetermineCombatRoundDetermines NPC actions during any given round.
DetermineSpecialBehaviorMakes a creature use behave a special way overriding default behavior.
ExitAOESpellAreaInternal function. Makes the calling creature flee from the AOE (area of effect) specified by oAOEObject.
GetCharacterLevelReturns the total levels a creature has in all three classes.
GetFleeToExitReturns TRUE if the executing object can use ActivateFleeToExit.
GetLockedObjectFinds the closest locked object up to a maximum of 10 objects away.
GetNPCWarningStatusDetermines a NPC's state of mind toward another object.
GetShouldNotCastSpellsBecauseofArmorInternal function. Returns TRUE if a wizard or sorcerer and wearing armor.
InvisibleBecomeInternal function. A more intelligent invisibility solution, along the lines of the one used in the various end-user AIs.
InvisibleTrueReturns TRUE if the object is hidden either magically or via stealth.
PlayMobileAmbientAnimationsMakes a creature act out some animations to look more lifelike.
RemoveAmbientSleepRemoves a sleep effect on a successful listen check.
RespondToShoutSets NPC to respond to numerous alerts sent by PC or other NPCs.
SetNPCWarningStatusStores the condition of an NPC warning status.
SetSummonHelpIfAttackedCreates an encounter that is meant to help an attacked NPC.


 author: Charles Feduke, editors: Mistress, Baragg, Kolyana