Rolls and modifiers
Mixed roll batches
Combine generic formulas and system rolls in one batch.
Batch separator
rollMixedDice() splits top-level segments with ;. Each generic segment supports the full grammar, including N#. + still adds within a segment. A special system call may also occupy a segment.
Aliases: vampiro, vampire, vampirev5; fatedice; AS, assimilacao, assimilation; dagger and dh. Names are normalized without case or accent differences. Arguments are integer literals, either positional or named, never mixed.
Result for 3D interfaces
The batch has rolls discriminated by kind and flattened dice with unique IDs, physicalValue, and, for systems, profileId/faceKey. It has no shared total because counts, symbols, and numeric totals cannot be added together. detail: 'compact' compacts only system baseRoll data; generic segments remain complete.
import { rollMixedDice } from '@erpg/dicecore/systems/mixed'
const batch = rollMixedDice('d20+5; fate(4)', { seed: 'session-42' })
const again = rollMixedDice(batch.input, { replay: batch.replay })Try the examples
Mixed roll in one batch
Separate rolls with semicolons to combine generic dice, Vampire V5, Fate, Assimilation, and Daggerheart. The 2D result and 3D overlay receive the same dice list in the same order.