FortitudeSave

From NWN Lexicon
Revision as of 00:24, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

FortitudeSave(object, int, int, object)

Returns the result of a Fortitude Save check.

int FortitudeSave(
    object oCreature,
    int nDC,
    SAVING_THROW_TYPE_NONE,
    object oSaveVersus = OBJECT_SELF
);

Parameters

oCreature

nDC

Difficulty check

nSaveType

SAVING_THROW_TYPE_NONE )

oSaveVersus

(Default: OBJECT_SELF)


Description

Returns the result of a Fortitude Save check for the given Difficulty Check.

Returns: 0 if the saving throw roll failed.
Returns: 1 if the saving throw roll succeeded.
Returns: 2 if the target was immune to the save type specified.



Version

1.22

Example

// Example 1 - Simple use.
nSaveResult = FortitudeSave(oTarget, nDifficultyCheck);

// Example 2 - Full parameter use.
nSaveResult = FortitudeSave(oTarget, nDifficultyCheck, SAVING_THROW_TYPE_COLD, OBJECT_SELF);

See Also

functions: 

WillSave

constants: 

SAVING_THROW_TYPE_* Constants



 author: Brett Lathrope, editor: Mistress