Combat Function Category
Combat related functions
Functions
Name | Brief Description |
---|---|
ActionCounterSpell | Causes the caller to enter the counterspell modal combat mode. |
ActionUseFeat | Causes an NPC to use a feat on oTarget. |
AssociateCheck | Checks whether an object is an henchman or not. |
BashDoorCheck | Used in DetermineCombatRound to keep a henchmen bashing doors. |
CheckEnemyGroupingOnTarget | Gets the number of enemies in a sphere shape around a target. |
CheckFriendlyFireOnTarget | Gets how many friendly creatures are within a spherical range of a target object. |
chooseTactics | Determines class-specific tactics. |
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. |
EffectDamageReduction | Create a Damage Reduction effect. |
EffectDamageResistance | Returns a new effect object that makes the target more resistant to certain types of damage. |
EffectDamageShield | Creates a damage shield around the target that will damage successful attackers. |
EffectDeath | Create a Death effect. |
GetAheadLocation | This function returns a location directly in front of the target. |
GetBehindLocation | Returns location directly behind the target and facing same direction as the target. |
GetCombatCondition | Determine whether the specified X0_COMBAT_FLAG_* is set on the target. |
GetFlankingLeftLocation | Returns a location on the left flank of the target. |
GetFlankingRightLocation | Returns a location that is the right flank (to the right and slightly behind) the target. |
GetForwardFlankingLeftLocation | Returns location to the forward left flank of the target. |
GetForwardFlankingRightLocation | Returns location to the forward right flank of the target. |
GetGoingToBeAttackedBy | Determines the creature that is going to attack another creature in the current combat round. |
GetIsFighting | Determines whether a creature is "fighting". |
GetLastHostileActor | Gets the last living, non plot creature that performed a hostile act against the object. |
GetOppositeLocation | Returns a location that is directly behind the target. |
JumpToWeakestEnemy | Makes the caller jump to the most damaged enemy. |
RestoreBaseAttackBonus | Restores the number of base attacks back to it's original state. |
SearchForPlayer | Makes a guard search for and attack the nearest PC. |
SetBaseAttackBonus | Sets the number of base attacks for the specified creature. |
SetCombatCondition | Set one of the X0_COMBAT_FLAG_* values on the target. |
SpecialTactics | Checks for the special tactics flags and chooses tactics appropriately for each. |
SpecialTacticsAmbusher | Special tactics for ambushers. |
SpecialTacticsCowardly | Special tactics for cowardly creatures. |
SpecialTacticsDefensive | Special tactics for defensive fighters. |
SpecialTacticsRanged | Special tactics for ranged fighters. |
TalentRangedAttacker | Determines course of action for spell-casting NPC while being attacked by ranged foes. |