Zach Hall28 downloadsDetects "Power Roll + N" text in Draw Steel statblocks and turns it into a clickable 2d10+N roller.
Obsidian plugin for Draw Steel.
It scans rendered notes for the text "Power Roll + N" and turns each match
into a clickable inline 2d10 + N roller — no change to how your statblocks are
written. Built for use alongside
Draw Steel Elements,
which renders roll: Power Roll + N statblock fields into plain text in Reading
view.
Independently written, but built on the same technique as
RPG Detect Dice Roll (registerMarkdownPostProcessor
TreeWalker text scanning), which handles literal 2d10+3 notation but not
Draw Steel's shorthand..ds-feature-container, .ds-sb-container). Without it, rolls still work but
are logged without that context.Power Roll + N (and + -N) anywhere in rendered Markdown —
statblocks, tables, callouts, prose. Only the numeric-modifier form; variants
like Power Roll + Reason, Intuition, or Presence are left alone.2d10 + N for characteristic/skill checks; type the
modifier yourself. Respects the Edge/Bane toggle.Or open this link to jump straight to it in Obsidian. Directory listing: https://community.obsidian.md/plugins/power-roll-detector.
To track pre-release builds ahead of the directory, use
BRAT: run BRAT: Add a beta
plugin for testing and add zachhall/power-roll-detector.
main.js, manifest.json, and styles.css from a release.<your vault>/.obsidian/plugins/power-roll-detector/.Power Roll + N click does to the
Power Roll sidebar. Always open (default) reveals it, creating it if
needed. Only if already open updates it without stealing focus/layout if
it isn't already visible. Never leaves it alone entirely — the roll still
logs to history and shows in the toast, just not reflected until you open the
sidebar yourself.npm install
npm run dev # watch build
npm run build # production build
npm run lint # eslint-plugin-obsidianmd (developer guideline checks)
npm test # Obsidian community-directory compliance checks (tests/)
esbuild.config.mjs writes main.js into this folder, so if the repo lives in
your vault's .obsidian/plugins/ directory, no copy step is needed — just reload
Obsidian.
MIT