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

Counting Crits as double the success

1698790825
Chris Jones
Pro
Sheet Author
Hi all apologies if this is written somewhere else - I had a look and couldn't see what I needed. Is there a way to have the dice roller count crits (a 10 on D10 in my case) as two successes, rather than one? Its in the same vein as exploding dice, but in my case I don't want to reroll and try for a success, just grant one automatically CHeers Chris
1698803932
GiGs
Pro
Sheet Author
API Scripter
There is a way if you dont have fumbles being counted. You need to be tracking exactly 3 things (fail, success, and critical). Are you also checking for fumbles?
1698831405
Chris Jones
Pro
Sheet Author
No, Fumbles aren't a thing for me - we just count anything over 8 as a success, and any 10s as two successes.
1698838599
GiGs
Pro
Sheet Author
API Scripter
Then you can the Grouping Rolls technique, the method I call the Exalted technique. The trick is to make you add the number of dice rolled. /r ?{NumDice|1}d10>10f<6 + ?{NumDice|1}. You can count failures as well as successes, which would give each die gives +1, 0, or -1. If you add +1 to the results, you get 2, 1, or 0 successes per die. The ?{NumDice|1} query above can be replaced with whatever method you use to enter the attribute number, it can be a stat or skill, or combination of the two /r [[@{str}+@{athetics}]]d10>10f<6 + @{str}+@{athetics}. You might want to wrap the whole thing in inline roll backets to make it neater [[?{NumDice|1}d10>10f<6 + ?{NumDice|1}]]
1698855647
Chris Jones
Pro
Sheet Author
OK, I sort of understand it, but my current jetlag and 8 month old baby brain isn't helping. The Character sheet I'm working from has a roller that I've not played with much before, and looks like it might make things more complex - for example, I have the following for every skill: rollqueryleadership: "@{leadership}d10>8+?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>8+?{" + getTranslationByKey("extradice") + "|0}d10>8]]}}", So, once I know how to do this on one skill, I can easily replicate it, but as you can see, rolling a skill also pulls in options for the paired Attribute, as well as the option for bonus dice, so I'm not sure how this fits together - especially when it comes to the additions for Attribute and extradice
1698858987
GiGs
Pro
Sheet Author
API Scripter
That does look more difficult. The key part is after the d10, changing d10>8 to d10>10f<6 and adding the dice rolled after. So, my guess is it would be something like this: rollqueryleadership: "@{leadership} d10>10f<6 +?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>8+?{" + getTranslationByKey("extradice") + "|0} d10>10f<6 + @{leadership} + ?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}]]}}", If you are editing the structure of a character sheet, you might be better off creating a Custom Roll Parsing sheet worker.
1698870846
Chris Jones
Pro
Sheet Author
Cheers. It's certainly doing something,  but I'm not sure what! 😀  What does the 6 refer to in that section BTW?
1698880870
GiGs
Pro
Sheet Author
API Scripter
Since your target is 8, it should be 7 not 6. It should be 1 less than your succes target.
1698924696
Chris Jones
Pro
Sheet Author
Cheers - with a bit of tweaking, I've almost got it working - for normal Skill + Attribute rolls it works fine, however once I add in "extra dice", it breaks, as it appears it isn't adding in the balancing weight of dice (I presume because "extra dice" isn't a static attr,). This is current, almost functional code: rollqueryleadership: "@{leadership}d10>10f<7+?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>10f<7+?{" + getTranslationByKey("extradice") + "|0}d10>10f<7 + @{leadership} + ?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}|" + getTranslationByKey("extradice") + "|0}}]]}}",
1698932312
GiGs
Pro
Sheet Author
API Scripter
Whats the code when you try to add in extra dice? You say that code is almost functional. Does it work as is (with no extra dice)?
1698934124
Chris Jones
Pro
Sheet Author
Yeah, it works fine for the normal rolls with no extra dice, but breaks when I add extra dice into the mix. The code returned in the dice roller for a 10 dice Skill + Attribute roll is: 5d10>10f<7+ 5d10>10f10f = This is followed by 10 dice worth of results, both bracketed into batches of 5 (which makes sense, as both the skill and attribute had value's of 5) This is followed by: ()+5+5 The code returned in the dice roller for a 15 dice Skill + Attribute + Extra Dice roll is: 5d10>10f<7+ 5d10>10f10f = This is followed by 15 dice worth of results, all three bracketed into batches of 5 (which makes sense, as both the skill, attribute, and extra dice had value's of 5) This is followed by: ()+5+5 Note that in the extra dice example, the ()+5+5 doesn't add in an additional +5  
1698935507
GiGs
Pro
Sheet Author
API Scripter
It looks like your 15 dice examples are the same as your 10 dice code. I'm mainly trying to find out of your extra dice come from another attribute, a query, or a fixed amount. The order of extra dice doesn't matter, so you can put them before the ]], likke so rollqueryleadership: "@{leadership}d10>10f<7+?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>10f<7+?{" + getTranslationByKey("extradice") + "|0}d10>10f<7 + @{leadership} + ?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}|" + getTranslationByKey("extradice") + "|0}}+5d10>10f<7+5]]}}", If that doesn't work, try putting them inside the preceding }, like so: rollqueryleadership: "@{leadership}d10>10f<7+?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>10f<7+?{" + getTranslationByKey("extradice") + "|0}d10>10f<7 + @{leadership} + ?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}|" + getTranslationByKey("extradice") + "|0}+5d10>10f<7+5}]]}}", The reason I can't say definitively, is the entire code above is a fragment from a larger macro. It's incomplete, so I'm just guessing where the code should go. If neither of the previous efforts work, putting it at the start should work, like this rollqueryleadership: "5d10>10f<7+5+@{leadership}d10>10f<7+?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}}d10>10f<7+?{" + getTranslationByKey("extradice") + "|0}d10>10f<7 + @{leadership} + ?{" + getTranslationByKey("selectattribute") + "|" + getTranslationByKey("intellect") + ",@{intellect}|" + getTranslationByKey("might") + ",@{might}|" + getTranslationByKey("presence") + ",@{presence}|" + getTranslationByKey("cunning") + ",@{cunning}|" + getTranslationByKey("dexterity") + ",@{dexterity}|" + getTranslationByKey("manipulation") + ",@{manipulation}|" + getTranslationByKey("resolve") + ",@{resolve}|" + getTranslationByKey("stamina") + ",@{stamina}|" + getTranslationByKey("composure") + ",@{composure}|" + getTranslationByKey("extradice") + "|0}}]]}}",
1699028299
Chris Jones
Pro
Sheet Author
Thansk for these - unfortunately they're not working - I'm seeing rolls of 20 dice (as opposed to the 15 it should be) on the last two. It may be that with this particular sheet that it just doesn't work it seems!
1699029107
GiGs
Pro
Sheet Author
API Scripter
The problem is, I'm only seeing part of the full macro and don't know exactly where to put that. The method is sound, but information is missing.
1699029151
Chris Jones
Pro
Sheet Author
I could put the sheet in google drive if that would help?