roll_hp: Roll hit points

View source: R/roll_hp.R

roll_hpR Documentation

Roll hit points

Description

Roll hit points based on the standard formula AdB+C where you roll A hit dice with B sides and add C

Usage

roll_hp(hp, n = 1)

Arguments

hp

character AdB+C

n

number of creatures to

Value

numeric vector of hit points

Examples

roll_hp("2d4+1")
roll_hp("4d10+12", 10)



jarad/dnd5e documentation built on Oct. 15, 2023, 5:55 p.m.