carrierfry / pixels-dndbeyond-userscript Goto Github PK
View Code? Open in Web Editor NEWUse pixel dice on dndbeyond.com
License: MIT License
Use pixel dice on dndbeyond.com
License: MIT License
The way this pattern looks:
&{template:simple} {{charname=Name}} {{rname= pixel roll (1d20)}} {{r1=[[ 0 [1d20] = (null)]]}} {{normal=1}} {{attack=1}} {{mod=}}
This lets me think, that they might look for the toast popup. Because I changed the "original" popup a lot for this, there might be stuff missing
The buttons for 1-handed rolls (when both 1 and 2 handed rolls are available) always roll virtual dice no matter what.
In this 1 case it shouldn't appear
It would be nice to light up the dice that are required for the selected roll when selecting a die to roll via roll with pixels
or via pixel mode
It should be possible to add the buttons and have the popup notifications for dice rolls even in this scenario
Via document.hidden
I can detect if the tab is open right now. If a tab is closed, I can ignore the roll. This should be an optional setting though
Beyond20 adds the feature for brutal crits (so instead of doubling the amount of dice, it quadruples them).
Could be nice to have. This would require to know if this is a feat the cahr has though
DMs rarely use a character sheet so supporting these would be nice
This might be doable. I don't know how to determine which button was right clicked originally though. If I can get this information easily (without adding a bunch of event listeners, though that would probably work while I think about it), this might be easy to do
Since so many people use beyond20, it might be a good idea to manually trigger the beyond20 events (since some stuff currently doesn't work). Here is a link on how to do that:
https://beyond20.here-for-more.info/api#integrating-with-beyond20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.