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 .
×

Change Die number after roll

I've been searching but I didn't kind anything like that, my question is if it is possible to make a dice roll and then change some value of the roll. The idea was to make something like this: /r 3d10!!6k2 and transform the "natural 10" to "0". Is there any way to do it? Thank you all.
1623219181
GiGs
Pro
Sheet Author
API Scripter
No, you cant do that without the API. You might be able to fake it, depending exactly what you need. First question though: does your d10 really explode on 6s? But 7-9 are higher and don't explode? The way to fake it is to recognise that d10-1 is the same as a die of 0-9 faces. So, you can fake your roll by just subtracting the number of dice rolled. You probably want to change the exploding value to 7, because it becomes a 6 after -1. So /r 3d10!!7k2-3 This isn't an ideal solution, but might work for you. Another approach that might work is to use a rollable table: first decide how many roll-ups you think is the maximum anyone will roll, then create a rollable table for a die with the weights assigned for each value to create the die. If you called the table specialdie , you'd have: /r {3t[specialdie]}k2
1623225078

Edited 1623226891
Yes, the die explodes only on 6, thanks. Cam I create rollable table without API? What I need to create is a die 0-9 that explodes on 6. Thank you very much
1623231359

Edited 1623231410
GiGs
Pro
Sheet Author
API Scripter
Yes, Rollable tables are available for free users. The tricky part is it doesnt do exploding rolls automatically. You have to create a table of weighted numbers, so you can enter them in the rollable table. Here's a table of values assuming the maximum number of rerolls is 9 (that should be more than enough). It's a lot of manual work to enter all the values! But you only need to enter them once. Item Weight 0 10000000 1 10000000 2 10000000 3 10000000 4 10000000 5 10000000 6 1000000 7 11000000 8 11000000 9 11000000 10 1000000 11 1000000 12 100000 13 1100000 14 1100000 15 1100000 16 100000 17 100000 18 10000 19 110000 20 110000 21 110000 22 10000 23 10000 24 1000 25 11000 26 11000 27 11000 28 1000 29 1000 30 100 31 1100 32 1100 33 1100 34 100 35 100 36 10 37 110 38 110 39 110 40 10 41 10 42 1 43 11 44 11 45 11 46 1 47 1 48 1 49 1 50 1 51 1 You can use Anydice to make your own table with a bit of work here: <a href="https://anydice.com/program/22a73" rel="nofollow">https://anydice.com/program/22a73</a>
Woow, that is lovely, thank you so much, didn't thought that idea
Perhaps I am trying to bite more than I can chew... but, can you please explain me what is wrong with this? "/r {[[?{Que resistencia usas| Fuerza, @{selected|Fuerza}+@{selected|P.Fuerza|max}?{Usas PF&amp;#124;No,]]t[PR-Desventaja]&amp;#125;k2&amp;#124;Si,+1]]t[PR-Desventaja]&amp;#125;k3}"