FortitudeSave
From NWN Lexicon
Contents |
[edit] 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 );
[edit] Parameters
oCreature
nDC
Difficulty check
nSaveType
oSaveVersus
(Default: OBJECT_SELF)
[edit] 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.
[edit] Version
1.22
[edit] Example
// Example 1 - Simple use. nSaveResult = FortitudeSave(oTarget, nDifficultyCheck); // Example 2 - Full parameter use. nSaveResult = FortitudeSave(oTarget, nDifficultyCheck, SAVING_THROW_TYPE_COLD, OBJECT_SELF);
[edit] See Also
functions: | |
constants: |
author: Brett Lathrope, editor: Mistress