Repository navigation
Releases
0.6.0
Dice you can watch. Click a roll, or roll from the panel or the roll window, and the dice tumble across the window and land on what came up: d4, d6, d8, d10, d12 and d20 as solids, d100 as a tens and a ones d10, Fate dice as d6s. Dropped dice land dimmed. They're drawn in code in your theme's accent colour, and clicks pass through them. Rolls a note makes as it opens never throw dice. Turn them off with Throw dice in the settings; they're off anyway when your system asks for less motion.
An API for other plugins. app.plugins.getPlugin('dice-tray')?.api.roll('2d20kh1 + dex', { sourcePath, show: true }) rolls with the same notation, throws the same dice, and gives back the total, the spelled-out roll and each die. average() too. See the README.
Try it in your browser: https://bulkhead.bananafest-destiny.com/press/dice-tray/
0.5.0
Rolls on a tag. dice: #npc gives a part of every note with the tag, dice: #npc|- one random note, dice: #npc|link a link to one, and dice: 2d#npc two parts. Body tags, frontmatter tags and nested tags all count, and no other plugin is needed. The note the roll is in is left out.
0.4.0
Rolls in Live Preview: inline dice: rolls now show as chips while you write, not only in reading view. Put the cursor on one to edit its code; move away and it rolls. Click a chip to roll again. dice+: and dice-mod: write their results into the note from Live Preview too. Source mode is left as written.
0.3.0
A dice panel in the sidebar: tap dice to build a roll, set a modifier, roll at advantage or disadvantage, save rolls you make often, and see every roll this session. Open it from the ribbon or with "Open the dice panel". Panel rolls go into Session Log like any other.
Also: the roll window now shows the modifier in its detail line (2d6 + 1 -> [2, 3] + 1 -> 6).
0.2.1
On a phone or tablet, tapping a roll now shows each die for a few seconds (there is no hover there). The card stays on screen, and Genesys and Star Wars pools get a card listing each die.
0.2.0
dice+:rolls once and keeps the result in the note; click to roll again.dice-mod:rolls once and replaces itself with the result.- Narrative dice for Genesys and Star Wars (
2g1y2p). - Fantasy AGE stunt die (
1dS). - Numbers from the note:
1d20 + dexreadsdex: 3from frontmatter ordex:: 3fields. - Clicked rolls go into Session Log, with the dice they showed.
0.1.0
First release.
- Inline
dice:rolls with the Dice Roller notation: arithmetic, keep/drop, explode, reroll, success counting, Fudge, d%, d66%, ranges, sort, unique. - Rolls on notes: sections, headings, list items, table rows and columns, lookup tables.
- Roll dice command with a small roller and history.
- No network, no telemetry.