Comments (4)
I think this is technically implementable, but may be a bit tricky. It would need a separate lexeme rule to match the inline tag regex, and see if itβs a number (or dice string), then return the value.
Something like this: https://github.com/valentine195/obsidian-dice-roller/blob/280eb10db20aa02dcc968f9725fa7845fa623453/src/main.ts#L521
from dice-roller.
I would also be interested in this for handling skill rolls that add an attribute modifier (as in D&D or other TTRPGs).
from dice-roller.
Just pushed 7.8.0 which adds basic support for Dataview. See here.
from dice-roller.
Is it possible to add support for fields defined in different notes?
dice: 1d6 + [[_Stats]].Edge
for example?
from dice-roller.
Related Issues (20)
- π Dice-Mod folder suggester does not display HOT 1
- π Section Roller omit first two rows and adds an empty row
- Dice View not calculating dice rolls.
- β¨ FR - choose the dice rolled to get data from a table HOT 1
- Dice Roller stops working after it encountered a parsing error in a formula
- Bold text HOT 1
- π Inline rolls don't work on canvas cards
- π Min/Max rolls result in only min or max Value HOT 1
- π Inline dice rolls using keep/drop formatting returns sum that includes all dice HOT 1
- π Dice rolls with disadvantage are ignored when a modifier is present HOT 3
- π `dice: d20` rolls 100 d20s HOT 1
- π Error creating WebGL context - not show options menu HOT 1
- π Dice tray roll button only erases the formula and doesn't roll HOT 2
- π is-min and is-max are incorrectly applied with kl and kh
- Table roller doesn't query note per roll
- π Individual dice results cannot be seen in the mobile version of the plugin.
- 𧩠Pass min /max parameters to Lookup Table rollers
- 𧩠Static dice roller button (to the left of the result)
- 𧩠Refactor lexical parser to accept front matter fields in dice contexts
- π Not able to enable on ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dice-roller.