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 .
×
Create a free account

Exploding and imploding dice

September 06 (8 years ago)
Atlas Games' Rune RPG uses the following dice rules:
Roll 1d10.
If the result is a 10, roll again and add the new result to the current total. Continue until you don't roll another 10.
If the result is a 1, roll again and subtract the new result from 0. If this new result is a 10, explode negatively (implode?) until you don't get any more 10s.

Roll20 can do exploding dice with "!": 1d10!
Can it do the "imploding" part? Without API? (I'm thinking not.)
September 06 (8 years ago)

Edited September 06 (8 years ago)
Here

    /roll 4d10!10ro1

!10 (explode 10s)
ro1 (roll over 1s)
September 06 (8 years ago)
Hmm, no I don't think so. That rerolls a 1 and adds it to the result; I want to subtract the reroll, and  to explode the subtraction.
September 06 (8 years ago)
You're definitely going to need a script to automate this. Would you like me to move this thread to the API forum and tag it as a request?
The 1s are not added into the total when you use ro1. Give it a try.

September 06 (8 years ago)
No thanks. I could script the API, but Rune is a multiple-GM game, and I couldn't expect all other players to have the membership level needed to run it.
September 06 (8 years ago)
Finderski
Pro
Sheet Author
Compendium Curator

David T. said:

No thanks. I could script the API, but Rune is a multiple-GM game, and I couldn't expect all other players to have the membership level needed to run it.

Only the GM who created the game needs to have the API.  If the game is hosted by a Pro level member, all players have access to the API at that point. :)
September 06 (8 years ago)

Finderski said:

Only the GM who created the game needs to have the API.

To add, Co-GMs will have access to the Script Editor in such a game, even if they are not Pro themselves.
September 07 (8 years ago)
I should have said "rotating GMs," wherein each GM hosts his own game.
September 07 (8 years ago)
I was also fiddling with breaking up the roll into

-1 * 1d10!
10 + 1d10!
1d10!ro1

and finding a way to select between the three values, weighted correctly, but I'm coming up blank. Can't use rollable tables because those don't allow nested inline rolls without the API. 
September 07 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You could host the game on your account (as the creator) and then just join as a player when it's someone else's turn to GM.
September 07 (8 years ago)
Finderski
Pro
Sheet Author
Compendium Curator

Scott C. said:

You could host the game on your account (as the creator) and then just join as a player when it's someone else's turn to GM.

That's what I do...we rotate between 4 different GMs, but my Pro account hosts all the games.
September 07 (8 years ago)

Edited September 07 (8 years ago)
I have a free account, still trying out Roll20.net myself. The first day, I created 2 games for the two character sheets.
I play around as a GM and can test out all manner of scripts, macros, targeting, character sheets.
They're a playground to learn Roll20.net.

Use that to test out what I said. Just start up your own game, go to the chat window and play around with the dice. ;-)
/roll 4d10!10ro1

But now that I read what you write again...

If 2-9, add as normal
if 10, add 10 and roll again
if 1, subtract 1 and roll again.

is that what you're trying to code?
September 07 (8 years ago)
No, it's

Start at 0.
Roll.
If 2–9, add result. Done.
If 10, add 10 and roll again (but do not do anything special for 1's).
If 1, roll again and subtract result. This result also explodes on 10's, and results are subtracted.
September 07 (8 years ago)
Diana P
Pro
Sheet Author
What I do for Rolemaster, which has a similar mechanic on a d100, is:  [[1d100!>96cf<5cs=100 +?{bonus/penalty?|0} ]]
These rolls open-end up on a 96 or higher and open-end down (re-roll and subtract) on a 5 or lower.  This roll set then explodes the 96 and highers and highlights in red the 5 or lowers so we can manually re-roll and subtract.  It also highlights a natural 100 because that is often something special in RMSS.

So maybe just a [[1d10!10cf<1]]  and if it turns up red, roll a second macro like [[?{original roll?} -1d10!10]] .

As a Pro member, you can also make a custom roll template (in html) to add to a custom character sheet which could look for a value of one on the roll and show you the second roll to subtract, but I personally don't know of any way to get it to automatically subtract for you.  The templates on my RMSS sheet will show something like:  check= 2 -35    
If you create and submit that character sheet to the repository, it could be used by non-pro members as well.