mod_calc: 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)
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
Arguments
score
(numeric) ability score value for which to identify the roll modifier