GetTurnResistanceHD(object)

From NWN Lexicon
Revision as of 11:11, 3 November 2020 by Jasperre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Determines the number of HitDice of Turn Resistance the creature has.

int GetTurnResistanceHD(
    object oUndead = OBJECT_SELF
);

Parameters

oUndead
Creature to run check on. (Default: OBJECT_SELF)

Description

Get the number of Hitdice worth of Turn Resistance that oUndead may have.

While it specifies oUndead and references not working on players/non-undead, it in fact does work on any creature.

Remarks

This checks for EffectTurnResistanceIncrease, EffectTurnResistanceDecrease and appropriate item properties.

It is used primarily in the Turn Undead spell script nw_s2_turndead.nss

Version

1.22

See Also

functions: 

GetEnemyHD



 author: Jody Fletcher