Category:Combat Information Functions

From NWN Lexicon
Jump to navigationJump to search

Combat information related functions.



Functions

Name Brief Description

DetermineEnemies

Returns number of enemies perceived and their combined levels.

FindSingleRangedTarget

Seeks out an enemy more than 3m away

GetAC

Retrieves the AC (armor class) of a creature.

GetAttackTarget

Determines the current foe under attack by the specified creature.

GetAttemptedAttackTarget

Determines the last creature that an attempted attack was made on.

GetAttemptedSpellTarget

Determines the creature a spell was attempted to be cast at.

GetCharacterLevel

Returns the total levels a creature has in all three classes.

GetDefensiveCastingMode

Retrieves the defensive casting mode status of a creature.

GetDistanceBetween

The distance in meters between two objects

GetDistanceToObject

The distance from the caller of the script to the object in meters.

GetFactionBestAC

Get the member of a faction (party) who has the highest Armor Class.

GetFactionLeastDamagedMember

Get the member of oFactionMember's faction that has taken the fewest hit points of damage.

GetFactionMostDamagedMember

Get the member of oFactionMember's faction that has taken the most hit points of damage.

GetFactionWeakestMember

Get the weakest member in a faction (party).

GetFactionWorstAC

Get the object faction member with the lowest armor class.

GetFlankingRightLocation

Returns a location that is the right flank (to the right and slightly behind) the Target

GetIsCreatureDisarmable

Check if oCreature can be disarmed

GetIsInCombat

Determines whether a creature is in combat.

GetLastAttacker

Determine who last attacked a creature, door or placeable object.

GetLastAttackMode

Determine a creature's combat mode.

GetLastAttackType

Determine the attack type of a creature's last attack.

GetLastDamager

Get the object which last damaged a creature or placeable object.

GetLastKiller

Get the object that killed the caller.

GetLastWeaponUsed

Get the last weapon that oCreature used in an attack.

GetMostDangerousClass

Use the four archetypes to determine the most dangerous group type facing the NPC.

GetTotalDamageDealt

Get the total amount of damage that was last dealt to the caller.

SearchForPlayer

Makes a guard search for and attack the nearest PC.