Skip to content

diceRolled

Sent after dice are rolled — spinning the planar die, or a “roll a d20” effect like The Deck of Many Things. Informational only; the player acknowledges the result to continue.

The diceRolled prompt in the Manabrew client

input.type is "diceRolled". The remaining fields:

interface DiceRolledInput {
sides: number;
rolls: Array<DiceRollEntry>;
title?: string;
sourceCardName?: string;
}

References: DiceRollEntry

Each entry in rolls is a DiceRollEntry:

FieldTypeDescription
label?stringOptional label for this roll.
playerId?stringOptional player the roll belongs to.
naturalResultsnumber[]The raw rolls before any modifiers.
finalResultsnumber[]The results after modifiers are applied.
ignoredRollsnumber[]Rolls that were discarded, e.g. from advantage.
highlightedbooleanWhether to visually emphasize this entry.
type DiceRolledOutput = { type: "diceRolledAcknowledged" };

This prompt is read-only — acknowledge to continue.

Rolling a d20 with advantage, keeping the higher of two natural rolls:

{
"promptId": 7,
"decidingPlayerId": "player-0",
"input": {
"type": "diceRolled",
"sides": 20,
"rolls": [
{
"label": "Advantage",
"playerId": "player-0",
"naturalResults": [14, 8],
"finalResults": [14],
"ignoredRolls": [8],
"highlighted": true
}
],
"title": "Roll a d20",
"sourceCardName": "Wand of Wonder"
}
}
{ "promptId": 7, "output": { "type": "diceRolledAcknowledged" } }