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

Two reroll-one conditions in one command won't work [[d20cs1cf20ro1ro20]]

I'm preparing a campaign using an RPG system, that isn't officially supported by roll20. "The dark Eye" is the most popular RPG system in germany. Now i need some help developing a roll command. Within this system i need a roll command, that rolls one d20 and in case of a 1 or 20 it should mark the roll as success or fail (using green or red highlight) and rerolls it once as a controll roll. These are the rules in detail: If an attack roll is 1, its critical, but only if a reroll is below or qual your charakters attack skill. If yor attack roll is 20 you'll hurt yourself, but only if a reroll is above your atack skill. If you roll a number below or equal to your atack skill, and the roll is not 1, than its not critical and you've done a normal hit. No reroll is needed. If you roll a number above your atack skill, and the roll is not 20, you missed, but no reroll is needed. If you only unse "reroll" and not "reroll-once" it is absolutely no problem to have serval reroll conditions. I tryed [[d20cs1cf20r1r20]] which does a pretty well job with rerolling, but it does not stop rolling after the second reroll in the rare case you roll 1-1, 1-20, 20,1 or 20,20. The "roll-once" condition does not seem to work if its contained two times in one command. [[d20cs1cf20ro1ro20]] would do exactly what i need, in theory. But it throws the error message " SyntaxError: Expected "!!", "!", "cf", "cs", "d", "k", "r", "ro", "s", [0-9] or [>|<|=] but "o" found. " [[d20cs1cf20ro1r20]] won't do the job, since it will keep rerolling in case of a 20. [[d20cs1cf20ro1,20]] doesn't work either. In the case of the roll 1-2 it should have shown a green highlghted 2 (green from the first roll, and 2 from the second roll. But there was no highlighting. So can anybody tell me the correct syntax to define two reroll-once conditions within one command? For test purposes i replaced all 20 with 3 in the formulas above, to give a higher chance of rerolls...
You probably can't re-roll more than once, until nested inline rolls hit the live servers. They're being tested on the dev server.
I dont want to reroll more than one. That is exactly the problem! The wiki gives this example for multiple reroll conditions: 8d6r2r4r6 - Roll 8 d6's and reroll any time a 2, 4, or 6 is rolled And some lines lower it says: In some systems (such as D&D 5E) you want to reroll dice below a certain value, but you only want to reroll the dice one time each. To do that, just use ro instead of r . But "just use ro instaed of r" is causing problems. You said "You probably can't re-roll more than once[...]" I don't need to reroll more than once. What i want is using multiple reroll conditions like in the example 8d6r2r4r6 but without automatic rerolling more than once. Just replacing r with ro -as said in the wiki- won't work.
Having two ro commands for the same die would be re-rolling more than once.
So ther is no Solution yet for (pseudocode) /roll d20ro (1 OR 20) which is in my opinion only one reroll, but triggered by two conditions ..?
1429455379
The Aaron
Roll20 Production Team
API Scripter
I'll bring up the issue of wanting to re-roll once on more than one value to the devs. In the interim, I think you'd be best placed to have 2 inline rolls, similar to the way 3.5 edition DnD often handles critical confirmations: [[1d20cf20cs1]] ([[1d20cf0cs<@{skill}]] Confirm) The first die has your rules for 20 is critical failure and 1 is critical success. In the case that the first die has any color other than yellow, you look to the second die to confirm. If the die is green, it confirms the critical success, if it is yellow, it confirms the critical failure. Once inline rolls hit production, you could change this to: [[1d20cf20cs1]] ([[1d20cf>[[@{skill+1}]]cs<@{skill}]] Confirm) Then the critical failure confirm is red, letting you tell at a glance that "green green = critical success, red red = critical failure". If this two dice method is not sufficient to your needs, you could upgrade to Mentor level and write an API script that handles this reasonably easily.
1429480688

Edited 1429480700
Kryx
Pro
Sheet Author
API Scripter
schentuu . said: So ther is no Solution yet for (pseudocode) /roll d20ro (1 OR 20) which is in my opinion only one reroll, but triggered by two conditions ..? You can only reroll "up to a number". So ro2 is up to 2, ro20 is up to 20. You can't specify the exact numbers if they are not less than a specific number. :(
1429495725

Edited 1429495744
The Aaron
Roll20 Production Team
API Scripter
Mark said: You can only reroll "up to a number". So ro2 is up to 2, ro20 is up to 20. You can't specify the exact numbers if they are not less than a specific number. :( The dice reference is a little unclear in this section, but you can certainly specify that only a specific number is to be rerolled. Here is 1d3ro2, which only rerolls 2s: Specifying an "up to" is handled by adding a < before the number. Here is 1d3ro<2 which has the behavior you are describing: