Hello fellows Roll20ers ! I noticed that my sheet rolltemplate is acting weird and. To
make it short, the rolltemplate displays wrong results when it comes to
the quality of success / failure : a d100 is rolled and if the result
is 30 or less below the target, it's a special success, if it's 30 or
above the target, it's a special failure. (Example : if the target is
50, a roll of 80 or above is a special failure, a roll of 20 or below
is a special success. Below is the code of the button and the rolltemplate Button :
<div class="thead"><button type="roll" class="bcar" name="COM"
title="Jet d'habileté" value="&{template:tmpl}
{{pc=@{character_name}}} {{name=Habileté (HAB)}} {{roll=[[1d100]]}}
{{target=[[@{HAB}+(?{Bonus(+)/Malus(-)|0})[Bonus/Malus]]]}}
{{E30=[[@{HAB}+(29)+(?{Bonus(+)/Malus(-)|0})[Bonus/Malus]]]}}
{{R30=[[@{HAB}-(29)+(?{Bonus(+)/Malus(-)|0})[Bonus/Malus]]]}}">HAB</button></div> Rolltemplate : <rolltemplate class="sheet-rolltemplate-tmpl"> <div class="tplmain"> <div class="pc">{{name}}</div> <div style="display: table;"> {{#target}} <div style="display: table-row;">
<div class="jet"><span style="font-family:
dicefontd10;font-size: x-large;">t</span> {{roll}} &le;
{{target}} <span style="font-size:
larger;">&#10132;</span></div> <div class="jet"> {{#rollGreater() roll target}} <span class="failure">Échec</span> {{/rollGreater() roll target}} {{#rollGreater() roll E30}} <span class="failure">30+</span> {{/rollGreater() roll E30}} {{#rollTotal() roll target}} <span class="success">Réussite</span> {{/rollTotal() roll target}} {{#rollLess() roll target}} <span class="success">Réussite</span> {{/rollLess() roll target}} {{#rollLess() roll R30}} <span class="success">30+</span> {{/rollLess() roll R30}} <div class="jet" style="display: table-row;"> {{#rollTotal() roll 10}} <span class="special">Critique !</span> {{/rollTotal() roll 10}} {{#rollTotal() roll 20}} <span class="special">Critique !</span> {{/rollTotal() roll 20}} {{#rollTotal() roll 30}} <span class="special">Critique !</span> {{/rollTotal() roll 30}} {{#rollTotal() roll 40}} <span class=pecial">Critique !</span> {{/rollTotal() roll 40}} {{#rollTotal() roll 50}} <span class="special">Critique !</span> {{/rollTotal() roll 50}} {{#rollTotal() roll 60}} <span class="special">Critique !</span> {{/rollTotal() roll 60}} {{#rollTotal() roll 70}} <span class="special">Critique !</span> {{/rollTotal() roll 70}} {{#rollTotal() roll 80}} <span class="special">Critique !</span> {{/rollTotal() roll 80}} {{#rollTotal() roll 90}} <span class="special">Critique !</span> {{/rollTotal() roll 90}} {{#rollTotal() roll 100}} <span class="special">Critique !</span> {{/rollTotal() roll 100}} </div> </div> </div> {{/target}} </div> <div class="jetnom">{{pc}}</div> </div> </rolltemplate> But
I'm pretty sure it's not related to the code, because 1) it has been
working flawlessly for months and 2) the same roll score will display
different results in a few minutes ! Below are screenshots taken in the same game, same sheet, same button : It displays a Failure 30+ which is wrong because 74 is not 30 above the target (50) 2 minutes later, I roll another 74 and here is the result : normal failure, which is correct :