trigger_dice: Trigger dice

Description Usage Arguments Value Examples

View source: R/roll_die.R

Description

This function identifies how many triggers are proc-d by a roll. A trigger is a specific value (or values) which are associated with special events. For example, an overcharged plasma has a trigger on an attack roll of 1. An overcharged plasma with a -1 to hit would trigger on attack rolls of 1 AND 2.

Usage

1
trigger_dice(x, trigger)

Arguments

x

numeric vector length >= 1 of dice rolls.

trigger

numeric vector of length >= 1. What EXACT values are special?

Value

numeric scalar number of triggers proc-d.

Examples

1
2
3
# trigger on a 1 (e.g. overcharged plasma)
rr <- roll_dice(1)
trigger_dice(x = rr, trigger = 1)

psmits/mathhammr documentation built on May 14, 2019, 5:16 a.m.