Method RollSavingThrow
RollSavingThrow(SavingThrow, int, SavingThrowType, NwGameObject?)
Performs a saving throw against the given dc.
public SavingThrowResult RollSavingThrow(SavingThrow savingThrow, int dc, SavingThrowType saveType, NwGameObject? saveVs = null)
Parameters
savingThrowSavingThrowThe type of saving throw to make (Fortitude/Reflex/Will).
dcintDifficulty class.
saveTypeSavingThrowTypeThe sub-type of this save (Mind effect, etc).
saveVsNwGameObjectThe creature this object is making the save against.
Returns
- SavingThrowResult
The result of the saving throw.
Exceptions
- ArgumentOutOfRangeException
Thrown if savingThrow is not Fortitude, Reflex, or Will.