GetFortitudeSavingThrow(object)

From NWN Lexicon
Jump to navigationJump to search

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

int GetFortitudeSavingThrow(
    object oTarget
);

Parameters

oTarget
Creature, door, or placeable.


Description

Returns oTarget's base fortitude saving throw value, and 0 if oTarget is invalid.


Remarks

This will only work properly for creatures, doors, and placeables.

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.22

See Also

functions: 

GetReflexSavingThrow GetWillSavingThrow

FortitudeSave ReflexSave WillSave



 author: Tom Cassiotis, editor: Kristian Markon, Mistress, contributor: Kookoo