Okay, so, recently I decided to look into the 2nd Edition sheet made for Dark Heresy, as I much prefer the layout over the 1st Edition one. There was just one problem, however: The roll template was just plain uglier with the 2nd Edition sheet compared to the 1st Edition one. So I thought, hey, I've messed with sheet code before, why not do it again to make the roll template better? Well...when I actually looked at the code side by side I noticed something extremely strange to me. It genuinely looks like whoever wrote the roll template section messed it up. Sections repeat slightly, values seem to be completely missing, and if you look at the end of the 2e template it looks like an entire earlier section of it was just copied and pasted at the end. I'm not new to computers but I'm definitely new to the code that makes that stuff work right. So, what the hell's going on here? Am I crazy or is the template actually borked? Small Sidenote: I've tried making edits line by line with my very minimal coding knowledge to make the 2e template look less broken, no good. I've tried just completely replacing the roll template with the 1e one, also no good. The only thing I haven't tried is completely deleting the template and seeing what happens 'cause honestly at this point, I'm lost on what needs to be done here. [Dark Heresy 1e Roll Template] <!--Roll Template test-->
<rolltemplate class="sheet-rolltemplate-dh1ed">
<table>
<tr>
<th colspan="2" class="sheet-title">{{rollname}}</th>
</tr>
<tr>
<th colspan="2"><img
src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png</a>"
class="sheet-rolltemplate-spacer"></th>
</tr>
{{#skill}}
<tr>
<td><span class="sheet-tcat" data-i18n="skill:">Skill: </span></td>
<td><span class="sheet-inlinerollresult">{{skill}}</span></td>
</tr>
{{/skill}}
{{#aim}}
<tr>
<td><span class="sheet-tcat" data-i18n="aim:">Aim: </span></td>
<td><span class="sheet-inlinerollresult">{{aim}}</span></td>
</tr>
{{/aim}}
{{#range}}
<tr>
<td><span class="sheet-tcat" data-i18n="range:">Range: </span></td>
<td><span class="sheet-inlinerollresult">{{range}}</span></td>
</tr>
{{/range}}
{{#attacktype}}
<tr>
<td><span class="sheet-tcat" data-i18n="attacktype:">Attack Type: </span></td>
<td><span class="sheet-inlinerollresult">{{attacktype}}</span></td>
</tr>
{{/attacktype}}
{{#modifier}}
<tr>
<td><span class="sheet-tcat" data-i18n="modifier:">Modifier: </span></td>
<td><span class="sheet-inlinerollresult">{{modifier}}</span></td>
</tr>
{{/modifier}}
{{#target}}
<tr class="sheet-topline">
<th colspan="2"><span></span></th>
</tr>
<tr>
<td><span class="sheet-tcat" data-i18n="target:">Target: </span></td>
<td><span class="sheet-inlinerollresult">{{target}}</span></td>
</tr>
{{/target}}
{{#threshold}}
<tr>
<td><span class="sheet-tcat" data-i18n="threshold:">Threshold: </span></td>
<td><span class="sheet-inlinerollresult">{{threshold}}</span></td>
</tr>
{{/threshold}}
{{#diceroll}}
<tr>
<th colspan="2"><img
src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png</a>"
class="sheet-rolltemplate-spacer sheet-invert"></th>
</tr>
<tr>
<td><span class="sheet-tcat" data-i18n="diceroll:">dice roll: </span></td>
<td><span class="sheet-inlinerollresult">{{diceroll}}</span></td>
</tr>
{{/diceroll}}
{{#rollGreater() weapondiceroll 96}}
<tr>
<th colspan="2"><img
src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png</a>"
class="sheet-rolltemplate-spacer sheet-invert"></th>
</tr>
<tr class="sheet-failure">
<td><span class="sheet-tcat" data-i18n="diceroll:">dice roll: </span></td>
<td><span class="sheet-inlinerollresult">{{weapondiceroll}}</span></td>
</tr>
{{#rollTotal() reliable 10}}
<tr class="sheet-failure">
<td><span class="sheet-tcat" data-i18n="reliable:">reliable: </span></td>
<td><span class="sheet-inlinerollresult">{{reliable}}</span></td>
</tr>
{{/rollTotal() reliable 10}}
{{#rollLess() reliable 10}}
<tr>
<td><span class="sheet-tcat" data-i18n="reliable:">reliable: </span></td>
<td><span class="sheet-inlinerollresult">{{reliable}}</span></td>
</tr>
{{/rollLess() reliable 10}}
{{/rollGreater() weapondiceroll 96}}
{{#rollLess() weapondiceroll 97}}
<tr>
<th colspan="2"><img
src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/img/spacer.png</a>"
class="sheet-rolltemplate-spacer sheet-invert"></th>
</tr>
<tr>
<td><span class="sheet-tcat" data-i18n="diceroll:">dice roll: </span></td>
<td><span class="sheet-inlinerollresult">{{weapondiceroll}}</span></td>
</tr>
{{/rollLess() weapondiceroll 97}}
{{#rollGreater() roll 0}}
<tr class="sheet-success">
<th colspan="2">
<span data-i18n="success">Success</span> <span data-i18n="with">with</span> {{roll}} <span
data-i18n="degrees">degrees</span>
</th>
</tr>
{{/rollGreater() roll 0}}
{{#rollTotal() roll 0}}
<tr class="sheet-success">
<th colspan="2">
<span data-i18n="success">Success</span> <span data-i18n="with">with</span> {{roll}} <span
data-i18n="degrees">degrees</span>
</th>
</tr>
{{/rollTotal() roll 0}}
{{#rollLess() roll 0}}
<tr class="sheet-failure">
<th colspan="2">
<span data-i18n="failure">Failure</span> <span data-i18n="with">with</span> {{roll}} <span
data-i18n="degrees">degrees</span>
</th>
</tr>
{{/rollLess() roll 0}}
{{#psy}}
<tr>
<td><span class="sheet-tcat" data-i18n="resultpsy:">Result Psy: </span></td>
<td><span class="sheet-inlinerollresult">{{psy}}</span></td>
</tr>
{{/psy}}
{{#damage}}
<tr class="sheet-damage">
<td><span class="sheet-tcat" data-i18n="damage:">Damage: </span></td>
<td><span class="sheet-inlinerollresult">{{damage}}</span></td>
</tr>
{{/damage}}
{{#damagetype}}
<tr class="sheet-damage">
<td><span class="sheet-tcat" data-i18n="type:">Type: </span></td>
<td><span class="sheet-inlinerollresult">{{damagetype}}</span></td>
</tr>
{{/damagetype}}
{{#special}}
<tr>
<td><b><span class="sheet-tcat" data-i18n="special:">Special: </span></b></td>
<td><span class="sheet-inlinerollresult">{{special}}</span></td>
</tr>
{{/special}}
{{#initiative}}
<tr>
<td><span class="sheet-tcat" data-i18n="result:">Result: </span></td>
<td><span class="sheet-inlinerollresult">{{initiative}}</span></td>
</tr>
{{/initiative}}
</table>
</rolltemplate>
<script type="text/worker"> [Dark Heresy 2e Roll Template] <!--Roll Template-->
<rolltemplate class="sheet-rolltemplate-dh2ed">
<table>
<tr>
<th colspan="2" class="sheet-title">{{name}}</th>
</tr>
<tr>
<th colspan="2">
<img alt="spacer" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png</a>"
class="sheet-rolltemplate-spacer"></th>
</tr>
{{#skill}}
<tr>
<td><span class="sheet-tcat">Skill: </span></td>
<td><span class="sheet-inlinerollresult">{{skill}}</span></td>
</tr>
{{/skill}}
{{#aim}}
<tr>
<td><span class="sheet-tcat">Aim: </span></td>
<td><span class="sheet-inlinerollresult">{{aim}}</span></td>
</tr>
{{/aim}}
{{#range}}
<tr>
<td><span class="sheet-tcat">Range: </span></td>
<td><span class="sheet-inlinerollresult">{{range}}</span></td>
</tr>
{{/range}}
{{#attacktype}}
<tr>
<td><span class="sheet-tcat">Attack Type: </span></td>
<td><span class="sheet-inlinerollresult">{{attacktype}}</span></td>
</tr>
{{/attacktype}}
{{#modifier}}
<tr>
<td><span class="sheet-tcat">Modifier: </span></td>
<td><span class="sheet-inlinerollresult">{{modifier}}</span></td>
</tr>
{{/modifier}}
{{#target}}
<tr class="sheet-topline">
<th colspan="2"><span></span></th>
</tr>
<tr>
<td><span class="sheet-tcat">Target: </span></td>
<td><span class="sheet-inlinerollresult">{{target}}</span></td>
</tr>
{{/target}}
{{#threshold}}
<tr>
<td><span class="sheet-tcat">Threshold: </span></td>
<td><span class="sheet-inlinerollresult">{{threshold}}</span></td>
</tr>
{{/threshold}}
{{#roll}}
<tr>
<th colspan="2">
<img alt="spacer" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png</a>"
class="sheet-rolltemplate-spacer sheet-invert">
</th>
</tr>
<tr>
<td><span class="sheet-tcat">dice roll: </span></td>
<td><span class="sheet-inlinerollresult">{{roll}}</span></td>
</tr>
{{/roll}}
{{#range}}
{{#rollGreater() roll 95}}
<tr>
<th colspan="2">
<img alt="spacer" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png</a>"
class="sheet-rolltemplate-spacer sheet-invert">
</th>
</tr>
<tr class="sheet-failure">
<td><span class="sheet-tcat" >Check for: </span></td>
<td><span class="sheet-inlinerollresult"> Jam </span></td>
</tr>
{{/rollGreater() roll 95}}
{{/range}}
{{#rollGreater() degrees 0}}
<tr class="sheet-success">
<th colspan="2">
<span>Success</span> <span>with </span> {{degrees}} <span> additional degrees</span>
</th>
</tr>
{{/rollGreater() degrees 0}}
{{#rollTotal() degrees 0}}
{{#^rollLess() target roll}}
<tr class="sheet-success">
<th colspan="2">
<span>Success</span> <span> </span> <span></span>
</th>
</tr>
{{/^rollLess() target roll}}
{{#rollLess() target roll}}
<tr class="sheet-success">
<th colspan="2">
<span>Failure</span> <span> </span> <span></span>
</th>
</tr>
{{/rollLess() target roll}}
{{/rollTotal() degrees 0}}
{{#rollLess() degrees 0}}
<tr class="sheet-failure">
<th colspan="2">
<span>Failure</span> <span>with </span> {{degrees}} <span> additional degrees</span>
</th>
</tr>
{{/rollLess() degrees 0}}
{{#psy}}
<tr>
<td><span class="sheet-tcat">Result Psy: </span></td>
<td><span class="sheet-inlinerollresult">{{psy}}</span></td>
</tr>
{{/psy}}
{{#^rollLess() degrees 0}}
{{#damage}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Damage: </span></td>
<td><span class="sheet-inlinerollresult">{{damage}}</span></td>
</tr>
{{#rollWasCrit() damage}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Check for: </span></td>
<td><span class="sheet-inlinerollresult">Righteous Fury</span></td>
</tr>
{{/rollWasCrit() damage}}
{{/damage}}
{{#damagetype}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Type: </span></td>
<td><span class="sheet-inlinerollresult">{{damagetype}}</span></td>
</tr>
{{/damagetype}}
{{#penetration}}
<tr>
<td><span class="sheet-tcat">Penetration: </span></td>
<td><span class="sheet-inlinerollresult">{{penetration}}</span></td>
</tr>
{{/penetration}}
<!--optional: Use Page 226 to determine location, since it can not be calculated this gives the option
to handle it in a different way-->
{{#location}}
<tr>
<td><span class="sheet-tcat">Location: </span></td>
<td><span class="sheet-inlinerollresult">{{location}}</span></td>
</tr>
{{/location}}
<!--optional: Location-->
{{#special}}
<tr>
<td><strong><span class="sheet-tcat">Special: </span></strong></td>
<td><span class="sheet-inlinerollresult">{{special}}</span></td>
</tr>
{{/special}}
{{/^rollLess() degrees 0}}
{{#initiative}}
<tr>
<td><span class="sheet-tcat">Result: </span></td>
<td><span class="sheet-inlinerollresult">{{initiative}}</span></td>
</tr>
{{/initiative}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dh2ed-dmg">
<table>
<tr>
<th colspan="2" class="sheet-title">{{name}}</th>
</tr>
<tr>
<th colspan="2">
<img alt="spacer" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png</a>"
class="sheet-rolltemplate-spacer"></th>
</tr>
{{#damage}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Damage: </span></td>
<td><span class="sheet-inlinerollresult">{{damage}}</span></td>
</tr>
{{#rollWasCrit() damage}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Check for: </span></td>
<td><span class="sheet-inlinerollresult">Righteous Fury</span></td>
</tr>
{{/rollWasCrit() damage}}
{{/damage}}
{{#damagetype}}
<tr class="sheet-damage">
<td><span class="sheet-tcat">Type: </span></td>
<td><span class="sheet-inlinerollresult">{{damagetype}}</span></td>
</tr>
{{/damagetype}}
{{#penetration}}
<tr>
<td><span class="sheet-tcat">Penetration: </span></td>
<td><span class="sheet-inlinerollresult">{{penetration}}</span></td>
</tr>
{{/penetration}}
<!--optional: Use Page 226 to determine location, since it can not be calculated this gives the option
to handle it in a different way-->
{{#location}}
<tr>
<td><span class="sheet-tcat">Location: </span></td>
<td><span class="sheet-inlinerollresult">{{location}}</span></td>
</tr>
{{/location}}
<!--optional: Location-->
{{#special}}
<tr>
<td><strong><span class="sheet-tcat">Special: </span></strong></td>
<td><span class="sheet-inlinerollresult">{{special}}</span></td>
</tr>
{{/special}}
</table>
</rolltemplate>
<script type="text/worker"> Link to Full HTML of 1e Sheet: <a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/DarkHeresy.html" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy/DarkHeresy.html</a> Link to Full HTML of 2e Sheet: <a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/DarkHeresy2ed.html" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/DarkHeresy2ed.html</a>