EffectTurnResistanceIncrease(int)

Create a Turn Resistance Decrease effect that can make creatures more resistant to turning.

effect EffectTurnResistanceIncrease(
    int nHitDice
);

Parameters

nHitDice

a positive number representing the number of hit dice for the increase


Description

Returns a new effect object that when applied to a target will increase their resistance to turning as if they were nHitDice in higher levels.

It returns a higher value for GetTurnResistanceHD() (added to the creature's hide property: Turn Resistance Increase), which is used in the turn undead script.



Remarks

Constructors are special methods that return a new instance of an object. In NWN Script each effect that you can place on an object has it’s own constructor that creates a new instance of the specified effect. This effect object can then be used in an ApplyEffectToObject() Command. See Effect Constructor for more details.


Version

1.22

See Also

functions: EffectTurnResistanceDecrease | GetTurnResistanceHD
categories: Effects Functions | Spells Functions


 author: John Shuell, editor: Jasperre
 Send comments on this topic.