[Script] "One Roll Engine" style dice matching

1500148538

Edited 1500148647
Ean
Pro
API Scripter
I've run One Roll Engine a bunch of times, and one of the most tedious parts is easily finding sets of dice in Roll20. In realspace you just arrange the dice, and Roll20 lets you sort them, but it's very annoying if you accidentally forget that modifer. My solution? A quick script to watch for an appropriately-shaped dice pool and count the sets in it for you! https://gist.github.com/eepMoody/c363bf1da384f2b56... Intentionally pretty lightweight: doesn't intercept rolls or mess with them in any way, just makes a notes of any sets if the dice pool is the right kind of die (or a !sets modifier was included) For convenient macro purposes I also included a !sets API command that will intercept the roll, append sorting and the !sets roll modifier, and submit that result back. Example output:
1500173329
The Aaron
Pro
API Scripter
Nice!  Looks like you're getting it ready for the 1-click (saw you're globalconfig stuff)?
1500173471
Ean
Pro
API Scripter
Yep, submitted a PR today, but wanted to make sure I was getting eyes on it at the same time. :)
This is really cool. I've been doing an Reign game for awhile, and we had to switch to a different program since it had built in support. This is going to bring us back to roll20, I think. Is there support for expert and master dice?
1500345397
Ean
Pro
API Scripter
Technically yes, in that you can write them down when you do your roll and it won't delete them. :) I've been talking to a couple folks about this and think I have a solution for expert dice, but Master Dice I think will always be better to just handle the old-fashioned way. The only way I can see doing Master dice properly would be to do a query popup after every roll that includes one, and I suspect it would get very annoying.  My current thinking is to do something like: /roll 5d10 + 3ed7 + 1md ... if you want to roll 3 expert dice at a value of 7, and 1 master dice that you decide later. 
That's great, thanks. I personally don't think I'd be annoyed by the whole master dice query prompt, but that's up to you.
That looks like a godsend for Hero/Champions players, who have to count 1s and 6s. Good work!