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

Roll Type with a set of dice that cause critical success/failure

1511154264
MrBS
Pro
Sheet Author
API Scripter
Hi, I would appreciate any help on the following.  I am creating a button roll for Rotted Capes.  They have a mechanic where you roll 2d10 and add it to a roll for an attribute (e.g. 1d6, 2d6, 3d6, etc).  The 2d10 also flags success or failure when a double 10 or double 1 is rolled.  The attribute roll explodes (got that piece functioning). I got the following example to work where MightDie = 1d6 and MightRollMod = 5 (variable input on the sheet):  {{roll=[[2d10 + @{MightDie}! + @{MightRollMod}]]}} How do I format the 2d10 so it flags a critical success (double 10's) or critical failure (double 1's). I tried the following but it threw an error: {{roll=[[(2d10)cf=2cs=20 + @{MightDie}! + @{MightRollMod}]]}} Thanks, Barry
1511155106

Edited 1511155351
Try this out: {{roll=[[ 2d10cs>2cf<9 + @{MightDie}!cs0cf0 + @{MightRollMod} ]]}} This should flag the roll as a crit on double-tens, a fumble on double-ones, and both a crit and a fumble on any other roll. I have not really explored Roll Template logic , but I hope that you can work with that.
1511221366

Edited 1511221437
MrBS
Pro
Sheet Author
API Scripter
Thank you!  That did the trick and it works like a charm.  I would not have gotten cs>2cf<9 as I was thinking of the inverse of identifying cs and cf.
Great!
1511298506
MrBS
Pro
Sheet Author
API Scripter
So another wrinkle.  The dice for an attribute geometrically stack (like Savage worlds but all are summed).  So a high level attribute may look something like 2d12+1d4, 2d12+1d6, 2d12+1d8, or 2d12+1d10.  Then you increment to 3d12 and onward. So when I do an inline roll with the following formula -- 2d10cs>2cf<9 + @{MightDie}!cs0cf0 + @{MightRollMod} -- only the last die of the compounded dice of the attribute are exploding.  So if MightDie was set to 2d12+1d4, the 12's are not exploding but the 4's are.  All dice can explode. Note, I did have two fields for compounding dice but merged it into a single select (aka 1d4, 1d6, 1d8, 1d10, 1d12, 1d12+1d4, 1d12+1d6, etc.); this single field makes it easier to use only the attribute dice in other action rolls where you combine the attribute dice into another roll ... which is never static but dependent on the power being used -- I can combine any power or skill with any attribute. With that said, is there a way to set both dice of the MightDie to explode (aka both the 2d12 and the 1d4)? Right now with the above formula only the 1d4 is exploding.
1511299733
Finderski
Plus
Sheet Author
Compendium Curator
Can't you set that up in the values of the character sheet form?  I don't know what type of input fields you are using, so I'm just speculating, but if the field were a drop down, the value could be d12! or 2d12!, etc.  
1511299737

Edited 1511299753
Could you include the roll syntax in the value of @{MightDie}? e.g. <select name="attr_MightDie">                    [...]    <option value="1d12!cs0cf0 + 1d4!cs0cf0">1d12+1d4</option>    <option value="1d12!cs0cf0 + 1d6!cs0cf0">1d12+1d6</option>    [...] </select> Edit: Ninja'd!
1511302347
MrBS
Pro
Sheet Author
API Scripter
awesome idea and it worked.  thanks for your help!