roll_dice: Roll dice

Description Usage Arguments Examples

View source: R/roll_dice.R

Description

Allows you to roll any combination of dice

Usage

1
2
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

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

jarad/dnd5e documentation built on April 9, 2018, 12:08 p.m.