Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Macro that removes all max rolls from the value and add 2 more dice.

1650923288

Edited 1650926147
Heya! We are playing a game called EON where you almost only make rolls with d6's. Every 6 is always removed from the value and you add 2 more dice instead. I have been looking through macros and preferences and the closest thing I can find is the reroll segment. Is there a way for it to roll 2 dice instead of 1 when rerolling?
1650926440
GiGs
Pro
Sheet Author
API Scripter
This roll isnt possible using standard Roll20 dice macros. The only ways to do would require API Scripts and therefore a Pro subscription. You'll have to roll the bonus 2d sets manually.
Thanks for the answer! I have no problem getting a PRO subscription, could actually be kinda dope when I will start hosting tables for groups of friends.  Would I need to script this myself or are there already scripts out there to just import? I have no clue about scripting.
1650933501
GiGs
Pro
Sheet Author
API Scripter
You can I think do this with ScriptCards (one of the existing scripts). You'd have to learn the syntax, but it's not very complicated, and I'm sure someone (David?) - will be along to see how to so it. ScriptCardshas its own thread, and you could ask in there for what you need. If you do get a pro subscription, it'll open up a world of options. TokenMod is almost worth the price on its own.
1650939585

Edited 1650940481
David M.
Pro
API Scripter
Here's a quick crack at that scriptcard. The 6's aren't added to total but add two dice instead. Assumes the re-rolled 6's keep adding dice. Loops through a variable number of d6's. The die rolls (with inline formatting) are appended to a string variable called displayDice, with a conditional statement controlling the logic. The total is a numeric variable that is only incremented on non-6's.  !script {{ --#title|EON Dice example --=numDice|?{How many dice?|3} --#leftsub|Rolling [$numDice]d6 --=total|0 --&displayDice| --=i|0 --:Loop| --=i|[$i]+1 --=thisRoll|1d6 --?[$thisRoll] -eq 6|[ --=numDice|[$numDice]+2 --&displayDice|+ [b][#009900][$thisRoll.Raw] [/#][/b] --]|[ --=total|[$total]+[$thisRoll] --&displayDice|+[$thisRoll] --]| --?[$i] -lt [$numDice]|Loop --+Die Rolls|[&displayDice] --+Total|[$total] }} Example output. Always rolled 3d6 in the examples below but the macro queries for the number of dice. The inline roll formatting is removed for 6's (that's what the ".Raw" syntax does) and is replaced with bold green text only. EDIT -   I didn't add any commenting to the scriptcard above, but  here's a link to the wiki that Kurt maintains which describes the syntax, and/or feel free to ask any questions about what is going on up there. 
Thanks for the replies! I did go and get myself a subscription and I have been reading alot. Kinda enjoyable. And that is exactly how the dice would work.  I will read up alot more on it and try it out myself!