roll_dice: Roll dice

View source: R/roll_dice.R

roll_diceR Documentation

Roll dice

Description

Allows you to roll any combination of dice

Usage

roll_dice(
  d4 = NULL,
  d6 = NULL,
  d8 = NULL,
  d10 = NULL,
  d12 = NULL,
  d20 = NULL,
  d100 = NULL,
  collapse = FALSE
)

Arguments

d4

A positive integer indicating the number of d4 to roll

d6

A positive integer indicating the number of d6 to roll

d8

A positive integer indicating the number of d8 to roll

d10

A positive integer indicating the number of d10 to roll

d12

A positive integer indicating the number of d12 to roll

d20

A positive integer indicating the number of d20 to roll

d100

A positive integer indicating the number of d100 to roll

collapse

Logical (FALSE) indicating whether to sum by die type

Examples

roll_dice(d20=6)
roll_dice(d4=2,d6=3,collapse=TRUE)


dndManager/dnd5e documentation built on Oct. 3, 2023, 2:31 p.m.