Learn R Programming

dndR (version 3.0.0)

monster_stats: Quickly Identify Monster Statistics

Description

Quickly identify the vital statistics of a single creature worth the provided experience points (XP) or Challenge Rating (CR). Uses the table provided in p. 274-275 of the Dungeon Master's Guide. Accepts Challenge Ratings of 0, '1/8', '1/4, and '1/2' in addition to numbers between 1 and 30. CR is *not necessary* to provide **if** XP is provided.

Usage

monster_stats(xp = NULL, cr = NULL)

Value

(dataframe) two columns and eight rows

Arguments

xp

(numeric) experience point (XP) value of the monster

cr

(numeric) challenge rating (CR) of the monster. Note that this is NOT necessary if XP is provided

Examples

Run this code
# Identify monster statistics for a known challenge rating
dndR::monster_stats(cr = 4)

# Or XP value
dndR::monster_stats(xp = 2800)

Run the code above in your browser using DataLab