nw_i0_generic
Contains a slew of useful functions.NOTE: This file includes x0_i0_anims and x0_i0_behavior.
Constants
Name | Value | Brief Description |
---|---|---|
chooseTactics_MEMORY_DEFENSE_OTHERS | 1 | |
chooseTactics_MEMORY_DEFENSE_SELF | 2 | |
chooseTactics_MEMORY_OFFENSE_MELEE | 0 | |
chooseTactics_MEMORY_OFFENSE_SPELL | 3 | |
NW_GENERIC_FLEE_EXIT_FLEE | 0 | |
NW_GENERIC_FLEE_EXIT_RETURN | 1 | |
NW_GENERIC_FLEE_TELEPORT_FLEE | 2 | |
NW_GENERIC_FLEE_TELEPORT_RETURN | 3 | |
NW_GENERIC_SHOUT_BACK_UP_NEEDED | 13 | |
NW_GENERIC_SHOUT_BLOCKER | 2 | |
NW_GENERIC_SHOUT_I_AM_DEAD | 12 | |
NW_GENERIC_SHOUT_I_WAS_ATTACKED | 1 |
Functions
Name | Brief Description |
---|---|
__InCombatRound | Internal function. Tests to see if already running a determine combat round this round. |
__TurnCombatRoundOn | Internal function. Will set the exclusion variable on whether in combat or not. |
ActivateFleeToExit | Causes a creature to run to its exit waypoint and disappear. |
AdjustBehaviorVariable | Internal function. Overriding "behavior" variables. If a variable has been stored on the creature it overrides the class defaults. |
BashDoorCheck | Used in DetermineCombatRound to keep henchmen bashing doors. |
CheckIsUnlocked | Plays voice chat messages that indicates the locked status of a door or placeable. |
chooseTactics | Determines class-specific tactics. |
CreateSignPostNPC | Spawns a creature using the action queue. |
DetermineClassToUse | Looks at the character classes of a NPC and determines which one to use in combat. |
DetermineCombatRound | Determines NPC actions during any given round. |
DetermineSpecialBehavior | Makes a creature use behave a special way overriding default behavior. |
ExitAOESpellArea | Internal function. Makes the calling creature flee from the AOE (area of effect) specified by oAOEObject. |
GetCharacterLevel | Returns the total levels a creature has in all three classes. |
GetFleeToExit | Returns TRUE if the executing object can use ActivateFleeToExit. |
GetLockedObject | Finds the closest locked object up to a maximum of 10 objects away. |
GetNPCWarningStatus | Determines a NPC's state of mind toward another object. |
GetShouldNotCastSpellsBecauseofArmor | Internal function. Returns TRUE if a wizard or sorcerer and wearing armor. |
InvisibleBecome | Internal function. A more intelligent invisibility solution, along the lines of the one used in the various end-user AIs. |
InvisibleTrue | Returns TRUE if the object is hidden either magically or via stealth. |
PlayMobileAmbientAnimations | Makes a creature act out some animations to look more lifelike. |
RemoveAmbientSleep | Removes a sleep effect on a successful listen check. |
RespondToShout | Sets NPC to respond to numerous alerts sent by PC or other NPCs. |
SetNPCWarningStatus | Stores the condition of an NPC warning status. |
SetSummonHelpIfAttacked | Creates an encounter that is meant to help an attacked NPC. |
author: Charles Feduke, editors: Mistress, Baragg, Kolyana