Simulate (Hotkey = S)d - Dice roll: NdS rolls N dice with S sides+ - Addition- - Subtraction* - Multiplication/ - Division> - Greater than (returns 1 if true, 0 if false)< - Less than (returns 1 if true, 0 if false)>= - Greater than or equal (returns 1 if true, 0 if false)<= - Less than or equal (returns 1 if true, 0 if false)== - Equal (returns 1 if true, 0 if false)!= - Not equal (returns 1 if true, 0 if false)max - Maximum: takes the maximum of two values (e.g for Advantage)min - Minimum: takes the minimum of two values (e.g. for Disadvantage)reroll - Reroll unmodified values and take the new result. Supports ranges as the left operand. [dice roll] reroll [number or range]2d6 reroll 1 - Roll two d6 dice, and for each die, reroll a result of 1.2d6 reroll 1:2 - Re-rolls results of 1 and 22d6 reroll i:j - Roll two d6 dice, and for each die, reroll a result of i up to j (inclusive)repeat - Repeat a computation n times, sum the results[expression] repeat [n_repetitions](d20 + 5 >= 15) * (2d6 + 3) repeat 2 - Two attacks with the same modifers- - Negation (multiply by -1)d202d6 + 5d20 max d20 + 5 (d20 >= 15)(d20 max d20 + 5 >= 15) * (2d6 + 5) (d20 + 5 >= 15) * (2d6 + 5) + (d20 + 5 >= 15) * (1d4 + 5) n is the base attack bonus, and k is the AC. The median matrix will have 1 on the positions where the HWM attack deals more damage on average. Use variables to set different values for n and k.((d20 max d20 + n - 5 >= k) * (2d6 + 5 + 10)) > ((d20 max d20 + n >= k) * (2d6 + 5 ))Allow you to evalute the expression for multiple values at the same time.
Each variable has - Name - string that you can write inside the expression - Value - set of values that the variable can have.
Inside the dice expression, each instance of name will be substituted for one value from the set (each instance of variable x will get the same value assignment in a single experiment), and
then the experiment is run. We test every possible combination of value assignments and then report the results in a table.
For example, we would like to see how much damage we can do against multiple AC variants at the same time. Our attack and damage rolls looks like
# Attack roll
d20 + 7 + d4
# Damage roll
2d6 + 4
We have
- +7 attack bonus
- Buff that adds 1d4 to our hit rolls
- We deal 2d6 + 4 damage on hit
We want to see how we fare against foes with some reasonable AC values, e.g. $\text{AC} \in \set{10, 11, ... , 20}$. We can use a variable for the AC.
1. Click on the Add Variable button
2. Set name to AC
3. Set values to 10-20
Now we can write a dice expression using the variable.
(d20 + 7 + d4 >= AC) * (2d6 + 4)
Now, when we press Simulate, we will run many experiments, substituting AC in the expression for each possible value in the value set of the variable AC. In the summary column, we will get a table with the results, one row for each value of AC.
If we would like to evaluate multiple attack bonuses, we can use another variable, e.g. n with values set to 5-9, and rewrite the expression to
(d20 + n + d4 >= AC) * (2d6 + 4)