Table of Contents

Method RollSavingThrow

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

savingThrow SavingThrow

The type of saving throw to make (Fortitude/Reflex/Will).

dc int

Difficulty class.

saveType SavingThrowType

The sub-type of this save (Mind effect, etc).

saveVs NwGameObject

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