Table of Contents

Method CalculateAbilityModifierFromScore

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

CalculateAbilityModifierFromScore(byte)

Gets the ability modifier from the given ability score.

public int CalculateAbilityModifierFromScore(byte abilityScore)

Parameters

abilityScore byte

The ability score to calculate the ability modifier from.

Returns

int

The ability modifier for the specified ability score.

Remarks

By default, this will return '(ability score - 10) / 2', however this can be different based on definitions in the ruleset.2da.