GetWillSavingThrow(object)

From NWN Lexicon
Jump to navigationJump to search

Determines the base will saving throw number of a creature, door or placeable.

int GetWillSavingThrow(
    object oTarget
);

Parameters

oTarget
The creature, door or placeable to get the saving throw.


Description

Returns oTarget's base will saving throw value (this will only work for creatures, doors, and placeables) and 0 if oTarget is invalid.


Remarks

If you are doing saving throws, it is recommended to use FortitudeSave/WillSave/ReflexSave in some capacity since GetXXXSavingThrow functions will not check VersusAlignmentEffect, VersusRacialTypeEffect (and any equivalent applied by feats) and has no capacity to check SAVING_THROW_TYPE_* (eg; vs. Fire bonuses/penalties) or if it is a spell and apply the Spellcraft skill saving throw bonus, and will not implement feats such as Slippery Mind or Uncanny Dodge. However in NWN:EE you can replicate likely all of this using GetEffectInteger and similar functions.


Version

1.62

See Also

functions: 

GetFortitudeSavingThrow GetReflexSavingThrow

FortitudeSave ReflexSave WillSave



 author: Tom Cassiotis, editor: Jasperre, Mistress, additional contributor(s): Jasperre