Combat Function Category

Combat related functions



Functions

NameBrief Description
ActionCounterSpellCauses the caller to enter the counterspell modal combat mode.
ActionUseFeatCauses an NPC to use a feat on oTarget.
AssociateCheckChecks whether an object is an henchman or not.
BashDoorCheckUsed in DetermineCombatRound to keep a henchmen bashing doors.
CheckEnemyGroupingOnTargetGets the number of enemies in a sphere shape around a target.
CheckFriendlyFireOnTargetGets how many friendly creatures are within a spherical range of a target object.
chooseTacticsDetermines class-specific tactics.
DetermineClassToUseLooks at the character classes of a NPC and determines which one to use in combat.
DetermineCombatRoundDetermines NPC actions during any given round.
EffectDamageReductionCreate a Damage Reduction effect.
EffectDamageResistanceReturns a new effect object that makes the target more resistant to certain types of damage.
EffectDamageShieldCreates a damage shield around the target that will damage successful attackers.
EffectDeathCreate a Death effect.
GetAheadLocationThis function returns a location directly in front of the target.
GetBehindLocationReturns location directly behind the target and facing same direction as the target.
GetCombatConditionDetermine whether the specified X0_COMBAT_FLAG_* is set on the target.
GetFlankingLeftLocationReturns a location on the left flank of the target.
GetFlankingRightLocationReturns a location that is the right flank (to the right and slightly behind) the target.
GetForwardFlankingLeftLocationReturns location to the forward left flank of the target.
GetForwardFlankingRightLocationReturns location to the forward right flank of the target.
GetGoingToBeAttackedByDetermines the creature that is going to attack another creature in the current combat round.
GetIsFightingDetermines whether a creature is "fighting".
GetLastHostileActorGets the last living, non plot creature that performed a hostile act against the object.
GetOppositeLocationReturns a location that is directly behind the target.
JumpToWeakestEnemyMakes the caller jump to the most damaged enemy.
RestoreBaseAttackBonusRestores the number of base attacks back to it's original state.
SearchForPlayerMakes a guard search for and attack the nearest PC.
SetBaseAttackBonusSets the number of base attacks for the specified creature.
SetCombatConditionSet one of the X0_COMBAT_FLAG_* values on the target.
SpecialTacticsChecks for the special tactics flags and chooses tactics appropriately for each.
SpecialTacticsAmbusherSpecial tactics for ambushers.
SpecialTacticsCowardlySpecial tactics for cowardly creatures.
SpecialTacticsDefensiveSpecial tactics for defensive fighters.
SpecialTacticsRangedSpecial tactics for ranged fighters.
TalentRangedAttackerDetermines course of action for spell-casting NPC while being attacked by ranged foes.

See Also

Function Categories