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 result template

I want to display special and fumble in character sheet template, and ability code is this. <button class="sheet-spec-roll" type="roll" value="&{template:HogwartsDice} {{name=@{character_name}}}{{spec=소각}}{{target=[[@{A2_value}]]}}{{roll2d6=[[1d6]]+[[1d6]]}}">소각</button> <input type="text" value="" name="attr_A2_value" /> (* [[1d6]]+[[1d6]] is fixed code, Original is [[2d6]])  In this rule, 12 (6+6) is special, and 2 (1+1) is fumble. And my second code is this <div class="sheet-dice"> {{roll2d6}} {{#mod}} {{#rollGreater() mod 0}} <span class="sheet-mod">+{{mod}}</span> {{/rollGreater() mod 0}} {{#rollLess() mod 0}} <span class="sheet-mod">{{mod}}</span> {{/rollLess() mod 0}} {{/mod}} {{#rollTotal() roll2d6 12}} <p class="sheet-special">special</p> {{/rollTotal() roll2d6 12}} {{#rollTotal() roll2d6 2}} <p class="sheet-fumble">fumble</p> {{/rollTotal() roll2d6 2}} </div> </div> but it isn't work. I think it needs to be modified so that it can recognize 2d6 separately... It's not my original code, so I don't know how to do. How can I fix this??? 
1639044238
Finderski
Plus
Sheet Author
Compendium Curator
If I had to guess, it's because roll2d6 is actually two rolls. Try changing it to this: {{roll2d6=[[ [[1d6]]+[[1d6]] ]]}} That will give a single result instead of two different roll results.
Finderski said: If I had to guess, it's because roll2d6 is actually two rolls. Try changing it to this: {{roll2d6=[[ [[1d6]]+[[1d6]] ]]}} That will give a single result instead of two different roll results. Thanks! I did it, It goes well. Can I ask another way 'cause I want display dice result like image.    with this dice result, Will I be unable to display specials and fumbles?