An Obsidian plugin. This page runs the real plugin code over a sample note in your browser, with Obsidian's look faked around it. Click any pill to roll again; hover one to see the dice.
Goblin boss attacks with dice: 1d20 + 5 to hit for dice: 2d6 + 3. The party rolls stats with dice: 4d6dl1 and saves at advantage with dice: 2d20kh1 + 2.
Exploding dice dice: 3d6!, success counting dice: 6d10>=7, Fate dice: 4dF, percentile dice: d%, average damage dice: 8d6|avg.
This note has str:: 4 and wis:: 1 in it. Longsword dice: 1d20 + str, perception dice: 1d20 + wis.
Genesys check dice: 2g1y2p1s, Fantasy AGE with stunt die dice: 1dS + 2.
Rolled once and kept: dice+: 4d6dl1 -> [5, 4, 3] -> 12
Forest encounter: dice: [[Encounters#Forest]]
Weather: dice: [[Encounters^weather]]
Loot: dice: [[Encounters^loot]]|Item worth dice: [[Encounters^loot]]|Value
Three encounters, no repeats: dice: 3d[[Encounters#Forest]]
A whole section at random: dice: [[Encounters]]
Who's at the inn tonight? dice: #npc|-
Obsidian's Live Preview editor draws the rolls as you write. Below is a real editor with the plugin running. Put the cursor on a roll to edit its code (arrow keys, or click just after it); move away and it rolls. Click a roll to roll again.
For rolls that aren't written in a note. Open it from the ribbon and it sits in the sidebar: tap a die to add it (right-click takes one away), set a modifier, roll at advantage. Save a roll you make often. Click one in "This session" to roll it again.
With Session Log installed, each roll you click, here or in the panel, lands in your session note. Click a few above: