GetTurnResistanceHD(object)

From NWN Lexicon
Jump to navigationJump to 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.


Remarks

This checks for EffectTurnResistanceIncrease, EffectTurnResistanceDecrease and appropriate item properties.

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


Known Bugs

This (as of NWN:EE v86.8193_34.1) returns 0 for PC undead, even when they have turn resistance as an item property on an equipped creature skin (ie from shapeshifting).


Version

1.22

See Also

functions: 

GetHitDice GetEnemyHD



 author: Jody Fletcher