RPG systems
Assimilation
d6/d10/d12 pools, symbols, and manual result selection.
Notation and pool
assim(d6,d10,d12,keep?) accepts non-negative integer counts with at least one die in total. keep defaults to 1 and cannot exceed the pool size. Named form: assim(d6=2,d10=1,d12=1,keep=2); AS is an alias. Rolling never automatically chooses dice.
Symbolic faces
d6 uses faces 1–6, d10 uses 1–10, and d12 uses 1–12. Every die has its own profileId, faceKey, and symbols list.
Explicit selection
Call evaluateAssimilationSelection(roll, selectedIds) with up to keep IDs from roll.dice. The return value preserves selection order and counts success, adaptation, and pressure. Unknown, repeated, or excess IDs raise INVALID_SYSTEM_INPUT.
import { rollAssimilation, evaluateAssimilationSelection } from '@erpg/dicecore/systems/assimilation'
const roll = rollAssimilation({ d6: 2, d10: 1, d12: 1, keep: 2 })
const selected = evaluateAssimilationSelection(roll, [roll.dice[0].id, roll.dice[3].id])
console.log(selected.success, selected.adaptation, selected.pressure)Try the examples
Mixed pool and result selection
Roll any combination of d6, d10, and d12. After the roll, choose up to the stated limit and total only the symbols on selected dice.
assim(d6=2,d10=1,d12=1,keep=2)Accepted shortcuts and variations
Use the short, Portuguese, accented Portuguese, or English call. Named parameters accept keep or manter; the positional order is d6, d10, d12, and optional keep.
- Call aliases
AS(...)assim(...)assimilacao(...)assimilação(...)assimilation(...)- Named parameters
AS(d6=2,d10=1,d12=1,keep=2)assim(d6=2,d10=1,d12=1,keep=2)assimilação(d6=2,d10=1,d12=1,manter=2)- Positional form
AS(2,1,1,2)assim(2,1,1,2)AS(2)
- 1.Enter how many d6, d10, and d12 form the pool. At least one die is required.
- 2.Choose sets how many dice you may keep after rolling; the default is one.
- 3.Roll every die and select the results that best match the action. There is no automatic choice.
- 4.Total Success, Adaptation, and Pressure only on the selected dice.