# Dice roll

Dice rolls are a type of notation to explain probability and range. The system for simulating randomness is taken from tabletop role-playing games, Dungeons and Dragons being a commonly known example, which has players roll multiple dice of varying face counts to decide outcomes. Dice rolls are an integral part of the game, being used in determining factors such as whether an attack hits and how much damage it deals.

## Notation

• The notation for dice is ${\displaystyle (n)d(f)}$, where ${\displaystyle n}$ is the number of dice and ${\displaystyle f}$ is the number of faces.
• For example: 2d6 means outcome is determined by two (2) dice (d) that are six-sided (6).
• The lowest output is ${\displaystyle n}$ and the highest output is ${\displaystyle n\times f}$; a 2d6 will roll between 2 (1+1) and 12 (6+6) and a 5d9 between 5 (1+1+1+1+1) and 45 (9+9+9+9+9).
• Any prior numbers are multipliers: 42d2 means a base damage of 4 is multiplied by the 2d2 output.
• Any following addition is done finally: 2d2+1 means 2d2 is rolled and then the result receives +1.

## Example

A melee attack uses multiple dice rolls to determine outcome:

Step Name Explanation Calculation Outcome
1. Connecting Accuracy (ACC) How accurate the strike is 1d20 + Agility (AG) + Hit Bonuses ACC > DV = hit, continue.
ACC < DV = miss, end.
Dodge (DV) How evasive the target is 1d20 + DV + Dodge Bonuses
2. Penetrating Penetration (PV) How well the weapon cuts through armor Pen. stat + Pen. Bonuses + Situational Bonuses + Move Bonuses PV > AV = damage, continue.
PV < AV = no damage, end.
Armor (AV) How well the armor blocks weapons Armor Stat + Skill Bonuses + Shield bonuses
3. Inflicting Damage (DMG) How much damage is dealt (Base DMG * [n]d[f] + DMG Bonuses) * (RES / 100) Outcome is health lost.
Resistances (RES) How much damage is reduced