WillSave
From NWN Lexicon
Contents |
[edit] WillSave(object, int, int, object)
Performs a Will Save check.
[edit] Parameters
oCreature
The creature that needs to roll a saving throw.
nDC
The difficulty check of the saving throw.
nSaveType
oSaveVersus
The source cause for the saving throw. (Default: OBJECT_SELF)
[edit] Description
Does a Will Save check for the given DC
Returns 0 if the saving throw roll failed, 1 if the saving throw roll succeeded and 2 if the target was immune to the save type specified.
Note: If used within an Area of Effect Object Script (On Enter, OnExit, OnHeartbeat), you MUST pass GetAreaOfEffectCreator() into oSaveVersus!!
[edit] Version
1.61
[edit] See Also
functions: | |
constants: |
author: Tom Cassiotis, editor: Lilac Soul, Mistress