Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

RPG Detect Dice Roll

solorpgstudiosolorpgstudio

Detects dice formulas in your notes and provides a way to automatically roll them.

Add to Obsidian
RPG Detect Dice Roll screenshot
RPG Detect Dice Roll screenshot
RPG Detect Dice Roll screenshot
RPG Detect Dice Roll screenshot
  • Overview
  • Scorecard
  • Updates2

RPG Detect Dice Roll is an Obsidian plugin for tabletop role-playing notes. It detects dice formulas in reading view, turns them into clickable roll controls, and keeps recent results in a roll history panel.

Use it for session notes, solo RPG journals, encounter prep, oracle tables, random events, and any note where you want 1d20 + 4 or 2d6 to roll directly from the page.

Features

  • Detects dice formulas in reading view and makes them clickable.
  • Supports formulas such as d20, 1d20 + 4, 2d6 - 1, 4d6kh3, 2d20kl1, 4d6dl1, and 4d6dh1.
  • Shows optional roll result notices with the total, formula, and roll details.
  • Adds a roll history side panel with recent results and timestamps.
  • Provides quick buttons for common dice: d4, d6, d8, d10, d12, d20, and d100.
  • Supports advantage and disadvantage rolls.
  • Lets you create custom formula dice buttons.
  • Lets you create custom narrative dice that choose from text outcomes, with optional weighting.
  • Includes display, color, toast placement, history, and control visibility settings.
  • Works offline and stores settings locally in your vault.

How to use

Write dice formulas naturally in your notes, then switch to reading view. Detected formulas are styled as interactive text or buttons, depending on your settings.

  • Select a detected formula to roll it normally.
  • Right-click a detected formula to roll normally, with advantage, or with disadvantage.
  • Select the dice ribbon icon or run Open roll history from the command palette to open the roll history panel.
  • Use the roll history panel to build manual formulas with quick dice buttons, operators, advantage controls, and custom dice.
  • Press Roll or Enter in the manual input to roll the typed formula.

Formula support

The plugin supports standard dice terms with optional modifiers:

d20
1d20 + 4
2d6 - 1
4d6kh3
2d20kl1
4d6dl1
4d6dh1

Keep/drop suffixes mean:

  • kh: keep highest
  • kl: keep lowest
  • dh: drop highest
  • dl: drop lowest

For example, 4d6kh3 rolls four six-sided dice and keeps the highest three.

Settings

Open Settings → Community plugins → RPG Detect Dice Roll to configure the plugin.

  • Formula display: choose inline styling or button styling for detected formulas.
  • History limit: choose how many recent rolls are kept in the roll history panel.
  • Show roll notices: show or hide toast notices when rolls complete. Enabled by default.
  • Toast placement: choose where roll notices appear when notices are enabled.
  • Manual roll controls: show or hide advantage and operator controls.
  • Dice buttons: choose which built-in dice buttons appear.
  • Custom dice: add custom formula buttons or narrative dice.
  • UI and color settings: customize formula and notice colors separately for light and dark themes.

Custom dice

Custom formula dice add reusable buttons to the roll history panel. A formula die can be a full formula such as 1d3, 2d6 + 1, or a keep/drop suffix such as kh1.

Custom narrative dice choose from text outcomes instead of numeric totals. Each outcome can have optional relative odds, such as 1, 3, 40%, or 1/5. If weights are blank or invalid, the plugin treats those outcomes as equal odds.

Manual installation

  1. Download the latest release files.
  2. Create this folder in your vault:
<Vault>/.obsidian/plugins/rpg-detect-dice-roll/
  1. Copy these files into that folder:
main.js
manifest.json
styles.css
  1. Reload Obsidian.
  2. Enable the plugin in Settings → Community plugins.

Development

This project uses TypeScript, npm, and esbuild.

See CONTRIBUTING.md for contribution guidelines.

Install dependencies:

npm install

Start a development build in watch mode:

npm run dev

Create a production build:

npm run build

The Obsidian release artifact is main.js, generated at the plugin root.

Create a release

Before creating a release, make sure the plugin builds successfully:

npm run build

Then prepare the release:

  1. Update manifest.json to the new Semantic Versioning value, such as 1.0.0 for the initial release. Obsidian supports versions only in x.y.z format.
  2. Update versions.json so the plugin version maps to the minimum supported Obsidian version.
  3. Create a GitHub release.
  4. Set the release tag to exactly match the version in manifest.json. Do not add a leading v.
  5. Enter a release name and description.
  6. Upload these release assets as binary attachments:
main.js
manifest.json
styles.css

styles.css is optional for Obsidian releases, but this plugin uses it, so include it.

Privacy

RPG Detect Dice Roll runs locally in Obsidian. It does not make network requests, collect analytics, or send vault contents to external services.

Support

License

This project is licensed under the terms in LICENSE.

99%
HealthExcellent
ReviewPassed
About
Detect dice formulas in reading view and turn them into clickable roll controls for common and advanced expressions (d20, 1d20+4, 4d6kh3, etc.). Keep recent results in a roll history side panel with timestamps and quick-dice buttons. Create custom numeric or narrative dice with optional weighting and roll with advantage or disadvantage.
TTRPGSidebar
Details
Current version
1.0.1
Last updated
5 hours ago
Created
17 hours ago
Updates
2 releases
Compatible with
Obsidian 1.0.1+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
solorpgstudiosolorpgstudio
www.solorpgstudio.com/
GitHubsolorpgstudio
substack.solorpgstudio.com
Blueskysolorpgstudio.com
GitHubsolorpgstudio
  1. Community
  2. Plugins
  3. TTRPG
  4. RPG Detect Dice Roll

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Recent Files

Display a list of recently opened files.

Longform

Helps you write and edit novels, screenplays, and other long projects.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

HiNote

Add comments to highlighted notes, use AI for thinking, and flashcards for memory.

Fantasy Statblocks

Create, manage and view a Fantasy Bestiary with Dungeons and Dragons style statblocks.

TagFolder

Show tags as folder.

Checklist

Consolidate checklists across all files into a single view.

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.