Rolls and modifiers
Multiple rolls and comments
Repeat one formula independently and label the result.
Repetition with N#
N#formula runs N independent executions of the same formula. The root total sums their totals; result.rolls preserves each one. N may be a deterministic math expression such as (3-1)#d20, provided it resolves to a positive integer within maxRolls. The compiler rejects zero rolls.
Comments and labels
[text],// text,/* text */, and# text(when no repeat prefix is present) add a description. Normalization removes comments from the executable formula and joins their text inresult.comment. The repetition marker takes precedence when#follows a valid leading count.To run different formulas together, use mixed batches separated by
;.+remains arithmetic within a formula.