Description Usage Arguments Value
Attack
1 2 3 4 |
adv |
integer. 0: Normal, -1 Disadvantage, +1 Advantage |
sharpShoot |
logical. are we sharpshooting |
attackStat |
character. which stat to use for attack. 3 letter. Added to hit and damage rolls |
damageDice |
character vector. attack dice. If more than one dice type is used (as in sneak attack) add them as a vector ( |
proficient |
logical. is the attacker proficient in the weapon. If so proficiency bonus will be added to hit rolls |
modToHit |
integer. hit modifier |
modToDamage |
integer. damage modifier |
ammo |
character. If provided ammo will be used. Before using, you need to set your ammo count manually by character$ammoName = 30 (character$bolt = 30) |
vocal |
logical. Should dice rolls and crit notifications be printed. |
critRange |
vector of integers. Which rolls to count as a critical hit |
char |
A list outputted from importCharacter or processCharacter, or a character naming such a list |
Named vector. Attack roll and damage. If a 1 is rolled damage is always 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.