TalentRangedAttackers
From NWN Lexicon
Jump to navigationJump to search
TalentRangedAttackers(object)
Determines course of action for spell-casting NPC while being attacked by ranged foes.
int TalentRangedAttackers(
object oIntruder = OBJECT_INVALID
);
Parameters
oIntruder
(Default: OBJECT_INVALID)
Description
Targets ranged attacker as long as not currently in melee. If current ranged attacker is alone, checks OBJECT_SELF for appropriate AREA EFFECT (discriminant) attack and if OBJECT_SELF and target are more than 5 meters apart.
If more than one attacker, checks for a AREA EFFECT (indiscriminant) talent, if both AREA EFFECT checks are invalid, does a RANGED attack talent check.
Requirements
#include " x0_i0_talent "
Version
1.29
See Also
| functions: | |
| events: |
author: Jody Fletcher, editor: Mistress