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 .
×

Dark heresy : wrong color for failure between -1 and -9.

Hello, as you can see in the attached picture, the result is green when it should be red for any roll that fails within -1 to -9 of the expected result.   It concerns the sheet for Dark Heresy 1st Edition Author: Daniel D. It used to work fine a few months back. It is a very good sheet and my players are really enjoying it, except for that of course. Thanks in advance !
1638531010
.Hell
Sheet Author
There were no changes to the sheet this year. You need to provide more detail for it
1638547598

Edited 1638548016
.Hell said: There were no changes to the sheet this year. You need to provide more detail for it I do not really know what I can add. Failures are green except of red, but only between 0 and 1 degree of failure. It is that way for every roll involving characteristics, be it skills or pure characteristics rolls, from myself or my players. Edit : added another screenshot : as you can see the middle roll should be red, but is green.
Formula is @{Gan Ceann (Fox)|abilityroll} &{template:dh1ed} {{rollname=^{rollag}}} [[(@{Gan Ceann (Fox)|Ag}+?{Modifier|0}-[[1d100]])/10]] {{roll=$[[1]]}} {{skill=@{Gan Ceann (Fox)|Ag}}} {{target=[[@{Gan Ceann (Fox)|Ag} + ?{Modifier|0}]]}} {{modifier=?{Modifier|0}}} {{diceroll=$[[0]]}}
1638705871
.Hell
Sheet Author
I had a brief look at the code and it states that everything below 0 is a failure and should be red. If you are 100% sure that this is just like a few month I suggest you open a github issue <a href="https://github.com/Roll20/roll20-character-sheets" rel="nofollow">https://github.com/Roll20/roll20-character-sheets</a>
1638789078

Edited 1638789482
I use the Havoc sheet based upon this one (if I'm not mistaken). However, the problem exists there, too. I tested it and the problem is in the roll template functions. Since some time before, the command rollGreater and rollLess interpret decimals differently. In other words, -0.5 is now considered above zero . So the functions don't work properly for decimals, even if using them with the NOT prefix. I tested&nbsp; that a lot and found a solution, which requires adaption of all the formulas and the roll template.In essence, I now pass the full difference between the roll and the skill value to the roll template in addition to the degrees of successes/failures. Then I evaluate the full difference and display the DoS/F. These are my fixes&nbsp;in bold . value="@{abilityroll} &amp;{template:dh1ed} {{rollname=^{rollag}}} [[ [[ (@{Ag_test}+@{miscmod}-[[1d100]] )]] /10]] {{roll=$[[1]]}} {{rolldeg=$[[2]]}} {{skill=@{ag}}} {{fatigue=@{fatigue_mod}}} {{encumbrance=@{encumbrance_mod}}} {{target=[[@{Ag_test} + @{miscmod}]]}} {{modifier=@{miscmod}}} {{diceroll=$[[0]]}}"&gt; ROLL is now the difference between skill and roll (full numbers, e.g. -7 or 24), and ROLLDEG is the (original) Degrees of Success/Failure (decimals, -0.7 or 2.4 respectively). Note: Fatigue &amp; Encumbrance are new values for my custom sheet. Misc Mod is fed from a query box on the sheet where you can enter global values or chose to display a selection box when rolling, speeding up rolls for (primarily) NPCs a lot. So ignore them. The template now looks like this (please ignore the custom parts which might differ - you'll get the idea). In essence, you only have to change the roll to rolldeg where the DoS/F are displayed. The rest will work fine. &nbsp; &nbsp; &nbsp; &nbsp; {{#roll}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#^rollLess() roll 0}} &lt;!-- Does currently not properly work with decimals. -0.4 is not considered below 0 --&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#rollGreater() surestrike 0}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th colspan="2" class="sheet-special" style="text-align:right" &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span data-i18n="surestrike_rule"&gt;(Sure Strike rules)&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{/rollGreater() surestrike 0}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr class="sheet-success"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th colspan="2"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span data-i18n="success"&gt;Success&lt;/span&gt; &lt;span data-i18n="with"&gt;with&lt;/span&gt; {{rolldeg}} &lt;span data-i18n="degrees"&gt;degrees&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
Benjamin H. said: I use the Havoc sheet based upon this one (if I'm not mistaken). However, the problem exists there, too. I tested it and the problem is in the roll template functions. Since some time before, the command rollGreater and rollLess interpret decimals differently. In other words, -0.5 is now considered above zero . So the functions don't work properly for decimals, even if using them with the NOT prefix. I tested&nbsp; that a lot and found a solution, which requires adaption of all the formulas and the roll template.In essence, I now pass the full difference between the roll and the skill value to the roll template in addition to the degrees of successes/failures. Then I evaluate the full difference and display the DoS/F. These are my fixes&nbsp;in bold . value="@{abilityroll} &amp;{template:dh1ed} {{rollname=^{rollag}}} [[ [[ (@{Ag_test}+@{miscmod}-[[1d100]] )]] /10]] {{roll=$[[1]]}} {{rolldeg=$[[2]]}} {{skill=@{ag}}} {{fatigue=@{fatigue_mod}}} {{encumbrance=@{encumbrance_mod}}} {{target=[[@{Ag_test} + @{miscmod}]]}} {{modifier=@{miscmod}}} {{diceroll=$[[0]]}}"&gt; ROLL is now the difference between skill and roll (full numbers, e.g. -7 or 24), and ROLLDEG is the (original) Degrees of Success/Failure (decimals, -0.7 or 2.4 respectively). Note: Fatigue &amp; Encumbrance are new values for my custom sheet. Misc Mod is fed from a query box on the sheet where you can enter global values or chose to display a selection box when rolling, speeding up rolls for (primarily) NPCs a lot. So ignore them. The template now looks like this (please ignore the custom parts which might differ - you'll get the idea). In essence, you only have to change the roll to rolldeg where the DoS/F are displayed. The rest will work fine. &nbsp; &nbsp; &nbsp; &nbsp; {{#roll}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#^rollLess() roll 0}} &lt;!-- Does currently not properly work with decimals. -0.4 is not considered below 0 --&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#rollGreater() surestrike 0}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th colspan="2" class="sheet-special" style="text-align:right" &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span data-i18n="surestrike_rule"&gt;(Sure Strike rules)&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{/rollGreater() surestrike 0}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr class="sheet-success"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th colspan="2"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span data-i18n="success"&gt;Success&lt;/span&gt; &lt;span data-i18n="with"&gt;with&lt;/span&gt; {{rolldeg}} &lt;span data-i18n="degrees"&gt;degrees&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; Thanks for the feedback ! Being a free user I cannot adapt it myself but I hope the author will see your solution.
1639062647
.Hell
Sheet Author
I rather think this is a bug that should be brought to Roll20 attention. I suggest you open a helpdesk ticket and refer to this thread
This has been happening for our group for about a month now, hopefully it's not too hard to fix!
1640190717
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
.Hell said: I rather think this is a bug that should be brought to Roll20 attention. I suggest you open a helpdesk ticket and refer to this thread If it is a community-generated sheet (which looks likely), you should contact the author as identified in the top post.&nbsp;