mod_calc {dndR}R Documentation

Calculate Modifier for Specified Ability Score

Description

Ability scores (typically 0-20 for most creatures) relate to roll modifiers. These values are what a player or DM actually adds to a given skill or ability check. This function performs the simple calculation to identify the roll modifier that relates to the supplied ability score.

Usage

mod_calc(score = 10)

Arguments

score

(numeric) ability score value for which to identify the roll modifier

Value

(character) roll modifier for a given ability score. If positive, includes a plus sign to make the addition explicit. Negative values are also returned as characters for consistency with positive modifiers

Examples

# Calculate roll modifier for an ability score of 17
mod_calc(score = 17)


[Package dndR version 2.0.0 Index]