Files
roll20-character-sheets/DeltaGreenRPG/delta_green.html
T
2024-06-03 13:15:14 -04:00

20016 lines
947 KiB
HTML

<script type="text/worker">
// A full night of sleep cures exhaustion so if sedatives work, you are not exhausted anymore
// the day after a full night of sleep and both exhaustion (they work mechanically the same)
const fillRepeatingSectionFromData = (sectionName, dataList) => {
const createdIDs = [];
const setting = dataList.map(o => {
let rowID;
while (!rowID) {
let newID = generateRowID();
if (!createdIDs.includes(newID)) {
rowID = newID;
createdIDs.push(rowID);
}
}
return Object.keys(o).reduce((m, key) => {
m[`${sectionName}_${rowID}_${key}`] = o[key];
return m;
}, {});
})
.reduce((m, o) => Object.assign(m, o), {});
setAttrs(setting);
};
// Set breaking point at char creation
on("change:pow",function(){
getAttrs(['firsttime','pow'],function(v){
if(v.firsttime=='1'){
setAttrs({firsttime:0}); // after you change pow for the first time, the next change will not modify the bp
let valuesan=Math.floor(v.pow * 5);
setAttrs({san:valuesan});
let valuebp=Math.floor(v.pow * 5)-Math.floor(v.pow);
setAttrs({bp_max:valuebp});
setAttrs({bp:valuebp});
}
});
});
on("sheet:opened change:rangeshotchk",function(){
getAttrs(['rangeshotchk'],function(v){
if (v.rangeshotchk == 'pointblank'){
setAttrs({distflag: -1});
}
if (v.rangeshotchk == 'normal'){
setAttrs({distflag: 0});
}
if (v.rangeshotchk == '2x'){
setAttrs({distflag: 1});VIOLE
}
if (v.rangeshotchk == '5x'){
setAttrs({distflag: 2});
}
});
});
on("change:switch_sheet",function(){
getAttrs(['switch_sheet'],function(){
let value=0;
let mark='normal';
setAttrs({modskillchk:mark});
setAttrs({customskillmod:value});
setAttrs({modskillchk_npc:mark});
setAttrs({customskillmod_npc:value});
setAttrs({customattackmod:value});
setAttrs({aimchk:value});
setAttrs({calledshot1:value});
setAttrs({calledshot2:value});
setAttrs({attackmodchk:value});
setAttrs({rangeshotchk:mark});
});
});
on("sheet:opened change:skilltype1",function(){
getAttrs(['skilltype1'],function(v){
if(v.skilltype1 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'unarmed combat'});
});
}else if(v.skilltype1 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'melee weapons'});
});
}else if(v.skilltype1 == '3' || v.skilltype1 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'firearms'});
});
}else if(v.skilltype1 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'firearms+20%'});
});
}else if(v.skilltype1 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'athletics'});
});
}else if(v.skilltype1 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'athletics+20%'});
});
}else if(v.skilltype1 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'demolitions'});
});
}else if(v.skilltype1 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'heavy weapons'});
});
}else if(v.skilltype1 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill1:value});
setAttrs({weapon_skillname1:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype2",function(){
getAttrs(['skilltype2'],function(v){
if(v.skilltype2 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'unarmed combat'});
});
}else if(v.skilltype2 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'melee weapons'});
});
}else if(v.skilltype2 == '3' || v.skilltype2 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'firearms'});
});
}else if(v.skilltype2 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'firearms+20%'});
});
}else if(v.skilltype2 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'athletics'});
});
}else if(v.skilltype2 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'athletics+20%'});
});
}else if(v.skilltype2 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'demolitions'});
});
}else if(v.skilltype2 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'heavy weapons'});
});
}else if(v.skilltype2 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill2:value});
setAttrs({weapon_skillname2:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype3",function(){
getAttrs(['skilltype3'],function(v){
if(v.skilltype3 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'unarmed combat'});
});
}else if(v.skilltype3 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'melee weapons'});
});
}else if(v.skilltype3 == '3' || v.skilltype3 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'firearms'});
});
}else if(v.skilltype3 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'firearms+20%'});
});
}else if(v.skilltype3 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'athletics'});
});
}else if(v.skilltype3 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'athletics+20%'});
});
}else if(v.skilltype3 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'demolitions'});
});
}else if(v.skilltype3 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'heavy weapons'});
});
}else if(v.skilltype3 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill3:value});
setAttrs({weapon_skillname3:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype4 ",function(){
getAttrs(['skilltype4'],function(v){
if(v.skilltype4 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'unarmed combat'});
});
}else if(v.skilltype4 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'melee weapons'});
});
}else if(v.skilltype4 == '3' || v.skilltype4 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'firearms'});
});
}else if(v.skilltype4 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'firearms+20%'});
});
}else if(v.skilltype4 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'athletics'});
});
}else if(v.skilltype4 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'athletics+20%'});
});
}else if(v.skilltype4 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'demolitions'});
});
}else if(v.skilltype4 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'heavy weapons'});
});
}else if(v.skilltype4 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill4:value});
setAttrs({weapon_skillname4:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype5 ",function(){
getAttrs(['skilltype5'],function(v){
if(v.skilltype5 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'unarmed combat'});
});
}else if(v.skilltype5 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskil5:value});
setAttrs({weapon_skillname5:'melee weapons'});
});
}else if(v.skilltype5 == '3' || v.skilltype5 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'firearms'});
});
}else if(v.skilltype5 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'firearms+20%'});
});
}else if(v.skilltype5 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'athletics'});
});
}else if(v.skilltype5 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'athletics+20%'});
});
}else if(v.skilltype5 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'demolitions'});
});
}else if(v.skilltype5 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'heavy weapons'});
});
}else if(v.skilltype5 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill5:value});
setAttrs({weapon_skillname5:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype6",function(){
getAttrs(['skilltype6'],function(v){
if(v.skilltype6 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'unarmed combat'});
});
}else if(v.skilltype6 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'melee weapons'});
});
}else if(v.skilltype6 == '3' || v.skilltype6 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'firearms'});
});
}else if(v.skilltype6 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'firearms+20%'});
});
}else if(v.skilltype6 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'athletics'});
});
}else if(v.skilltype6 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'athletics+20%'});
});
}else if(v.skilltype6 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'demolitions'});
});
}else if(v.skilltype6 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'heavy weapons'});
});
}else if(v.skilltype6 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill6:value});
setAttrs({weapon_skillname6:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype7",function(){
getAttrs(['skilltype7'],function(v){
if(v.skilltype7 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'unarmed combat'});
});
}else if(v.skilltype7 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'melee weapons'});
});
}else if(v.skilltype7 == '3' || v.skilltype7 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'firearms'});
});
}else if(v.skilltype7 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'firearms+20%'});
});
}else if(v.skilltype7 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'athletics'});
});
}else if(v.skilltype7 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'athletics+20%'});
});
}else if(v.skilltype7 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'demolitions'});
});
}else if(v.skilltype7 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'heavy weapons'});
});
}else if(v.skilltype7 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill7:value});
setAttrs({weapon_skillname7:'artillery'});
});
}
});
});
on("sheet:opened change:skilltype8",function(){
getAttrs(['skilltype8'],function(v){
if(v.skilltype8 == '1'){
getAttrs(['unarmed_combat'],function(v1){
let value=parseInt(v1.unarmed_combat,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'unarmed combat'});
});
}else if(v.skilltype8 == '2'){
getAttrs(['melee_weapons'],function(v1){
let value=parseInt(v1.melee_weapons,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'melee weapons'});
});
}else if(v.skilltype8 == '3' || v.skilltype8 == '4' ){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'firearms'});
});
}else if(v.skilltype8 == '5'){
getAttrs(['firearms'],function(v1){
let value=parseInt(v1.firearms,10) ||0;
value+=20;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'firearms+20%'});
});
}else if(v.skilltype8 == '6'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'athletics'});
});
}else if(v.skilltype8 == '7'){
getAttrs(['athletics'],function(v1){
let value=parseInt(v1.athletics,10) ||0;
value+=20;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'athletics+20%'});
});
}else if(v.skilltype8 == '8'){
getAttrs(['demolitions'],function(v1){
let value=parseInt(v1.demolitions,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'demolitions'});
});
}else if(v.skilltype8 == '9'){
getAttrs(['heavy_weapons'],function(v1){
let value=parseInt(v1.heavy_weapons,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'heavy weapons'});
});
}else if(v.skilltype8 == '10'){
getAttrs(['artillery'],function(v1){
let value=parseInt(v1.artillery,10) ||0;
setAttrs({weaponrealskill8:value});
setAttrs({weapon_skillname8:'artillery'});
});
}
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod1 change:weaponrealskill1",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod1', 'weaponrealskill1'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill1,10);
common=parseInt(v.weaponrealskill1,10)
common+=parseInt(v.totattackmod,10)+parseInt(v.accmod1,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif1:handmod});
setAttrs({tfiremodif1:firemod});
setAttrs({texplmodif1:explmod});
setAttrs({tshotmodif1:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod2 change:weaponrealskill2",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod2', 'weaponrealskill2'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill2,10);
common=parseInt(v.weaponrealskill2,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod2,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif2:handmod});
setAttrs({tfiremodif2:firemod});
setAttrs({texplmodif2:explmod});
setAttrs({tshotmodif2:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod3 change:weaponrealskill3",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod3', 'weaponrealskill3'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill3,10);
common=parseInt(v.weaponrealskill3,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod3,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif3:handmod});
setAttrs({tfiremodif3:firemod});
setAttrs({texplmodif3:explmod});
setAttrs({tshotmodif3:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod4 change:weaponrealskill4",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod4', 'weaponrealskill4'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill4,10);
common=parseInt(v.weaponrealskill4,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod4,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif4:handmod});
setAttrs({tfiremodif4:firemod});
setAttrs({texplmodif4:explmod});
setAttrs({tshotmodif4:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod5 change:weaponrealskill5",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod5', 'weaponrealskill5'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill5,10);
common=parseInt(v.weaponrealskill5,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod5,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif5:handmod});
setAttrs({tfiremodif5:firemod});
setAttrs({texplmodif5:explmod});
setAttrs({tshotmodif5:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod6 change:weaponrealskill6",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod6', 'weaponrealskill6'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill6,10);
common=parseInt(v.weaponrealskill6,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod6,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif6:handmod});
setAttrs({tfiremodif6:firemod});
setAttrs({texplmodif6:explmod});
setAttrs({tshotmodif6:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod7 change:weaponrealskill7" ,function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod7', 'weaponrealskill7'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill7,10);
common=parseInt(v.weaponrealskill7,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod7,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif7:handmod});
setAttrs({tfiremodif7:firemod});
setAttrs({texplmodif7:explmod});
setAttrs({tshotmodif7:shotmod});
});
});
on("sheet:opened change:totattackmod change:totdistmod change:accmod8 change:weaponrealskill8",function(){
getAttrs(['totattackmod', 'totdistmod', 'accmod8', 'weaponrealskill8'],function(v){
let handmod=0;
let firemod=0;
let explmod=0;
let shotmod=0;
let common=0;
let skillmodmax=40;
skillmodmax+=parseInt(v.weaponrealskill8,10);
common=parseInt(v.weaponrealskill8,10)+parseInt(v.totattackmod,10)+parseInt(v.accmod8,10);
handmod=Math.min(common,skillmodmax);
firemod=Math.min(common+parseInt(v.totdistmod,10),skillmodmax);
explmod=Math.min(20+common+parseInt(v.totdistmod,10),skillmodmax);
shotmod=Math.min(common+20,skillmodmax);
setAttrs({thandmodif8:handmod});
setAttrs({tfiremodif8:firemod});
setAttrs({texplmodif8:explmod});
setAttrs({tshotmodif8:shotmod});
});
});
on('sheet:opened, change:str_mod',function(){
getAttrs(['str_mod'],function(v){
let modif=parseInt(v.str_mod,10)||0;
if (modif>=0){
let string='+'+modif.toString();
setAttrs({textstrmod:string});
} else {
let string=modif.toString();
setAttrs({textstrmod:string});
}
});
});
on('change:calledshot1',function(){
getAttrs(['calledshot1'],function(v){
let cs1=parseInt(v.calledshot1,10)||0;
if (cs1 == 1){
setAttrs({calledshot2:0});
}
getAttrs(['calledshot1','calledshot2'],function(v1){
let a2=parseInt(v1.calledshot2,10)||0;
a2=a2+cs1;
setAttrs({calledshotchk:a2});
});
});
});
on('change:calledshot2',function(){
getAttrs(['calledshot2'],function(v){
let cs2=parseInt(v.calledshot2,10)||0;
if (cs2 == 2){
setAttrs({calledshot1:0});
}
getAttrs(['calledshot1','calledshot2'],function(v1){
let a1=parseInt(v1.calledshot1,10)||0;
a1=a1+cs2;
setAttrs({calledshotchk:a1});
});
});
});
on('change:skilltype1',function(){
getAttrs(['skilltype1'],function(v){
let type=parseInt(v.skilltype1,10);
if (type<=2){
setAttrs({rangechka1:'1'});
setAttrs({rangechkb1:'0'});
setAttrs({rangechkc1:'0'});
setAttrs({dmgchka1:'1'});
setAttrs({dmgchkb1:'0'});
setAttrs({dmgchkc1:'0'});
setAttrs({dmgchkd1:'0'});
setAttrs({ammochk1:'0'});
setAttrs({radiuschk1:'0'});
setAttrs({rhand1:'1'});
setAttrs({rfired1:'0'});
setAttrs({rfirel1:'0'});
setAttrs({rshot1:'0'});
setAttrs({rdrive1:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka1:'0'});
setAttrs({rangechkb1:'1'});
setAttrs({rangechkc1:'0'});
setAttrs({dmgchka1:'0'});
setAttrs({dmgchkb1:'1'});
setAttrs({dmgchkc1:'0'});
setAttrs({dmgchkd1:'0'});
setAttrs({ammochk1:'1'});
setAttrs({radiuschk1:'0'});
setAttrs({rhand1:'0'});
setAttrs({rfired1:'1'});
setAttrs({rfirel1:'0'});
setAttrs({rshot1:'0'});
setAttrs({rdrive1:'0'});
} else if (type == 5){
setAttrs({rangechka1:'0'});
setAttrs({rangechkb1:'0'});
setAttrs({rangechkc1:'1'});
setAttrs({dmgchka1:'0'});
setAttrs({dmgchkb1:'0'});
setAttrs({dmgchkc1:'0'});
setAttrs({dmgchkd1:'1'});
setAttrs({ammochk1:'1'});
setAttrs({radiuschk1:'0'});
setAttrs({rhand1:'0'});
setAttrs({rfired1:'0'});
setAttrs({rfirel1:'0'});
setAttrs({rshot1:'1'});
setAttrs({rdrive1:'0'});
} else{
setAttrs({rangechka1:'0'});
setAttrs({rangechkb1:'1'});
setAttrs({rangechkc1:'0'});
setAttrs({dmgchka1:'0'});
setAttrs({dmgchkb1:'0'});
setAttrs({dmgchkc1:'1'});
setAttrs({dmgchkd1:'0'});
setAttrs({ammochk1:'1'});
setAttrs({radiuschk1:'1'});
setAttrs({rhand1:'0'});
setAttrs({rfired1:'0'});
setAttrs({rfirel1:'1'});
setAttrs({rshot1:'0'});
setAttrs({rdrive1:'0'});
}
});
});
on('change:skilltype2',function(){
getAttrs(['skilltype2'],function(v){
let type=parseInt(v.skilltype2,10);
if (type<=2){
setAttrs({rangechka2:'1'});
setAttrs({rangechkb2:'0'});
setAttrs({rangechkc2:'0'});
setAttrs({dmgchka2:'1'});
setAttrs({dmgchkb2:'0'});
setAttrs({dmgchkc2:'0'});
setAttrs({dmgchkd2:'0'});
setAttrs({ammochk2:'0'});
setAttrs({radiuschk2:'0'});
setAttrs({rhand2:'1'});
setAttrs({rfired2:'0'});
setAttrs({rfirel2:'0'});
setAttrs({rshot2:'0'});
setAttrs({rdrive2:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka2:'0'});
setAttrs({rangechkb2:'1'});
setAttrs({rangechkc2:'0'});
setAttrs({dmgchka2:'0'});
setAttrs({dmgchkb2:'1'});
setAttrs({dmgchkc2:'0'});
setAttrs({dmgchkd2:'0'});
setAttrs({ammochk2:'1'});
setAttrs({radiuschk2:'0'});
setAttrs({rhand2:'0'});
setAttrs({rfired2:'1'});
setAttrs({rfirel2:'0'});
setAttrs({rshot2:'0'});
setAttrs({rdrive2:'0'});
} else if (type == 5){
setAttrs({rangechka2:'0'});
setAttrs({rangechkb2:'0'});
setAttrs({rangechkc2:'1'});
setAttrs({dmgchka2:'0'});
setAttrs({dmgchkb2:'0'});
setAttrs({dmgchkc2:'0'});
setAttrs({dmgchkd2:'1'});
setAttrs({ammochk2:'1'});
setAttrs({radiuschk2:'0'});
setAttrs({rhand2:'0'});
setAttrs({rfired2:'0'});
setAttrs({rfirel2:'0'});
setAttrs({rshot2:'1'});
setAttrs({rdrive2:'0'});
} else{
setAttrs({rangechka2:'0'});
setAttrs({rangechkb2:'1'});
setAttrs({rangechkc2:'0'});
setAttrs({dmgchka2:'0'});
setAttrs({dmgchkb2:'0'});
setAttrs({dmgchkc2:'1'});
setAttrs({dmgchkd2:'0'});
setAttrs({ammochk2:'1'});
setAttrs({radiuschk2:'1'});
setAttrs({rhand2:'0'});
setAttrs({rfired2:'0'});
setAttrs({rfirel2:'1'});
setAttrs({rshot2:'0'});
setAttrs({rdrive2:'0'});
}
});
});
on('change:skilltype3',function(){
getAttrs(['skilltype3'],function(v){
let type=parseInt(v.skilltype3,10);
if (type<=2){
setAttrs({rangechka3:'1'});
setAttrs({rangechkb3:'0'});
setAttrs({rangechkc3:'0'});
setAttrs({dmgchka3:'1'});
setAttrs({dmgchkb3:'0'});
setAttrs({dmgchkc3:'0'});
setAttrs({dmgchkd3:'0'});
setAttrs({ammochk3:'0'});
setAttrs({radiuschk3:'0'});
setAttrs({rhand3:'1'});
setAttrs({rfired3:'0'});
setAttrs({rfirel3:'0'});
setAttrs({rshot3:'0'});
setAttrs({rdrive3:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka3:'0'});
setAttrs({rangechkb3:'1'});
setAttrs({rangechkc3:'0'});
setAttrs({dmgchka3:'0'});
setAttrs({dmgchkb3:'1'});
setAttrs({dmgchkc3:'0'});
setAttrs({dmgchkd3:'0'});
setAttrs({ammochk3:'1'});
setAttrs({radiuschk3:'0'});
setAttrs({rhand3:'0'});
setAttrs({rfired3:'1'});
setAttrs({rfirel3:'0'});
setAttrs({rshot3:'0'});
setAttrs({rdrive3:'0'});
} else if (type == 5){
setAttrs({rangechka3:'0'});
setAttrs({rangechkb3:'0'});
setAttrs({rangechkc3:'1'});
setAttrs({dmgchka3:'0'});
setAttrs({dmgchkb3:'0'});
setAttrs({dmgchkc3:'0'});
setAttrs({dmgchkd3:'1'});
setAttrs({ammochk3:'1'});
setAttrs({radiuschk3:'0'});
setAttrs({rhand3:'0'});
setAttrs({rfired3:'0'});
setAttrs({rfirel3:'0'});
setAttrs({rshot3:'1'});
setAttrs({rdrive3:'0'});
} else{
setAttrs({rangechka3:'0'});
setAttrs({rangechkb3:'1'});
setAttrs({rangechkc3:'0'});
setAttrs({dmgchka3:'0'});
setAttrs({dmgchkb3:'0'});
setAttrs({dmgchkc3:'1'});
setAttrs({dmgchkd3:'0'});
setAttrs({ammochk3:'1'});
setAttrs({radiuschk3:'1'});
setAttrs({rhand3:'0'});
setAttrs({rfired3:'0'});
setAttrs({rfirel3:'1'});
setAttrs({rshot3:'0'});
setAttrs({rdrive3:'0'});
}
});
});
on('change:skilltype4',function(){
getAttrs(['skilltype4'],function(v){
let type=parseInt(v.skilltype4,10);
if (type<=2){
setAttrs({rangechka4:'1'});
setAttrs({rangechkb4:'0'});
setAttrs({rangechkc4:'0'});
setAttrs({dmgchka4:'1'});
setAttrs({dmgchkb4:'0'});
setAttrs({dmgchkc4:'0'});
setAttrs({dmgchkd4:'0'});
setAttrs({ammochk4:'0'});
setAttrs({radiuschk4:'0'});
setAttrs({rhand4:'1'});
setAttrs({rfired4:'0'});
setAttrs({rfirel4:'0'});
setAttrs({rshot4:'0'});
setAttrs({rdrive4:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka4:'0'});
setAttrs({rangechkb4:'1'});
setAttrs({rangechkc4:'0'});
setAttrs({dmgchka4:'0'});
setAttrs({dmgchkb4:'1'});
setAttrs({dmgchkc4:'0'});
setAttrs({dmgchkd4:'0'});
setAttrs({ammochk4:'1'});
setAttrs({radiuschk4:'0'});
setAttrs({rhand4:'0'});
setAttrs({rfired4:'1'});
setAttrs({rfirel4:'0'});
setAttrs({rshot4:'0'});
setAttrs({rdrive4:'0'});
} else if (type == 5){
setAttrs({rangechka4:'0'});
setAttrs({rangechkb4:'0'});
setAttrs({rangechkc4:'1'});
setAttrs({dmgchka4:'0'});
setAttrs({dmgchkb4:'0'});
setAttrs({dmgchkc4:'0'});
setAttrs({dmgchkd4:'1'});
setAttrs({ammochk4:'1'});
setAttrs({radiuschk4:'0'});
setAttrs({rhand4:'0'});
setAttrs({rfired4:'0'});
setAttrs({rfirel4:'0'});
setAttrs({rshot4:'1'});
setAttrs({rdrive4:'0'});
} else{
setAttrs({rangechka4:'0'});
setAttrs({rangechkb4:'1'});
setAttrs({rangechkc4:'0'});
setAttrs({dmgchka4:'0'});
setAttrs({dmgchkb4:'0'});
setAttrs({dmgchkc4:'1'});
setAttrs({dmgchkd4:'0'});
setAttrs({ammochk4:'1'});
setAttrs({radiuschk4:'1'});
setAttrs({rhand4:'0'});
setAttrs({rfired4:'0'});
setAttrs({rfirel4:'1'});
setAttrs({rshot4:'0'});
setAttrs({rdrive4:'0'});
}
});
});
on('change:skilltype5',function(){
getAttrs(['skilltype5'],function(v){
let type=parseInt(v.skilltype5,10);
if (type<=2){
setAttrs({rangechka5:'1'});
setAttrs({rangechkb5:'0'});
setAttrs({rangechkc5:'0'});
setAttrs({dmgchka5:'1'});
setAttrs({dmgchkb5:'0'});
setAttrs({dmgchkc5:'0'});
setAttrs({dmgchkd5:'0'});
setAttrs({ammochk5:'0'});
setAttrs({radiuschk5:'0'});
setAttrs({rhand5:'1'});
setAttrs({rfired5:'0'});
setAttrs({rfirel5:'0'});
setAttrs({rshot5:'0'});
setAttrs({rdrive5:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka5:'0'});
setAttrs({rangechkb5:'1'});
setAttrs({rangechkc5:'0'});
setAttrs({dmgchka5:'0'});
setAttrs({dmgchkb5:'1'});
setAttrs({dmgchkc5:'0'});
setAttrs({dmgchkd5:'0'});
setAttrs({ammochk5:'1'});
setAttrs({radiuschk5:'0'});
setAttrs({rhand5:'0'});
setAttrs({rfired5:'1'});
setAttrs({rfirel5:'0'});
setAttrs({rshot5:'0'});
setAttrs({rdrive5:'0'});
} else if (type == 5){
setAttrs({rangechka5:'0'});
setAttrs({rangechkb5:'0'});
setAttrs({rangechkc5:'1'});
setAttrs({dmgchka5:'0'});
setAttrs({dmgchkb5:'0'});
setAttrs({dmgchkc5:'0'});
setAttrs({dmgchkd5:'1'});
setAttrs({ammochk5:'1'});
setAttrs({radiuschk5:'0'});
setAttrs({rhand5:'0'});
setAttrs({rfired5:'0'});
setAttrs({rfirel5:'0'});
setAttrs({rshot5:'1'});
setAttrs({rdrive5:'0'});
} else{
setAttrs({rangechka5:'0'});
setAttrs({rangechkb5:'1'});
setAttrs({rangechkc5:'0'});
setAttrs({dmgchka5:'0'});
setAttrs({dmgchkb5:'0'});
setAttrs({dmgchkc5:'1'});
setAttrs({dmgchkd5:'0'});
setAttrs({ammochk5:'1'});
setAttrs({radiuschk5:'1'});
setAttrs({rhand5:'0'});
setAttrs({rfired5:'0'});
setAttrs({rfirel5:'1'});
setAttrs({rshot5:'0'});
setAttrs({rdrive5:'0'});
}
});
});
on('change:skilltype6',function(){
getAttrs(['skilltype6'],function(v){
let type=parseInt(v.skilltype6,10);
if (type<=2){
setAttrs({rangechka6:'1'});
setAttrs({rangechkb6:'0'});
setAttrs({rangechkc6:'0'});
setAttrs({dmgchka6:'1'});
setAttrs({dmgchkb6:'0'});
setAttrs({dmgchkc6:'0'});
setAttrs({dmgchkd6:'0'});
setAttrs({ammochk6:'0'});
setAttrs({radiuschk6:'0'});
setAttrs({rhand6:'1'});
setAttrs({rfired6:'0'});
setAttrs({rfirel6:'0'});
setAttrs({rshot6:'0'});
setAttrs({rdrive6:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka6:'0'});
setAttrs({rangechkb6:'1'});
setAttrs({rangechkc6:'0'});
setAttrs({dmgchka6:'0'});
setAttrs({dmgchkb6:'1'});
setAttrs({dmgchkc6:'0'});
setAttrs({dmgchkd6:'0'});
setAttrs({ammochk6:'1'});
setAttrs({radiuschk6:'0'});
setAttrs({rhand6:'0'});
setAttrs({rfired6:'1'});
setAttrs({rfirel6:'0'});
setAttrs({rshot6:'0'});
setAttrs({rdrive6:'0'});
} else if (type == 5){
setAttrs({rangechka6:'0'});
setAttrs({rangechkb6:'0'});
setAttrs({rangechkc6:'1'});
setAttrs({dmgchka6:'0'});
setAttrs({dmgchkb6:'0'});
setAttrs({dmgchkc6:'0'});
setAttrs({dmgchkd6:'1'});
setAttrs({ammochk6:'1'});
setAttrs({radiuschk6:'0'});
setAttrs({rhand6:'0'});
setAttrs({rfired6:'0'});
setAttrs({rfirel6:'0'});
setAttrs({rshot6:'1'});
setAttrs({rdrive6:'0'});
}else{
setAttrs({rangechka6:'0'});
setAttrs({rangechkb6:'1'});
setAttrs({rangechkc6:'0'});
setAttrs({dmgchka6:'0'});
setAttrs({dmgchkb6:'0'});
setAttrs({dmgchkc6:'1'});
setAttrs({dmgchkd6:'0'});
setAttrs({ammochk6:'1'});
setAttrs({radiuschk6:'1'});
setAttrs({rhand6:'0'});
setAttrs({rfired6:'0'});
setAttrs({rfirel6:'1'});
setAttrs({rshot6:'0'});
setAttrs({rdrive6:'0'});
}
});
});
on('change:skilltype7',function(){
getAttrs(['skilltype7'],function(v){
let type=parseInt(v.skilltype7,10);
if (type<=2){
setAttrs({rangechka7:'1'});
setAttrs({rangechkb7:'0'});
setAttrs({rangechkc7:'0'});
setAttrs({dmgchka7:'1'});
setAttrs({dmgchkb7:'0'});
setAttrs({dmgchkc7:'0'});
setAttrs({dmgchkd7:'0'});
setAttrs({ammochk7:'0'});
setAttrs({radiuschk7:'0'});
setAttrs({rhand7:'1'});
setAttrs({rfired7:'0'});
setAttrs({rfirel7:'0'});
setAttrs({rshot7:'0'});
setAttrs({rdrive7:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka7:'0'});
setAttrs({rangechkb7:'1'});
setAttrs({rangechkc7:'0'});
setAttrs({dmgchka7:'0'});
setAttrs({dmgchkb7:'1'});
setAttrs({dmgchkc7:'0'});
setAttrs({dmgchkd7:'0'});
setAttrs({ammochk7:'1'});
setAttrs({radiuschk7:'0'});
setAttrs({rhand7:'0'});
setAttrs({rfired7:'1'});
setAttrs({rfirel7:'0'});
setAttrs({rshot7:'0'});
setAttrs({rdrive7:'0'});
} else if (type == 5){
setAttrs({rangechka7:'0'});
setAttrs({rangechkb7:'0'});
setAttrs({rangechkc7:'1'});
setAttrs({dmgchka7:'0'});
setAttrs({dmgchkb7:'0'});
setAttrs({dmgchkc7:'0'});
setAttrs({dmgchkd7:'1'});
setAttrs({ammochk7:'1'});
setAttrs({radiuschk7:'0'});
setAttrs({rhand7:'0'});
setAttrs({rfired7:'0'});
setAttrs({rfirel7:'0'});
setAttrs({rshot7:'1'});
setAttrs({rdrive7:'0'});
} else{
setAttrs({rangechka7:'0'});
setAttrs({rangechkb7:'1'});
setAttrs({rangechkc7:'0'});
setAttrs({dmgchka7:'0'});
setAttrs({dmgchkb7:'0'});
setAttrs({dmgchkc7:'1'});
setAttrs({dmgchkd7:'0'});
setAttrs({ammochk7:'1'});
setAttrs({radiuschk7:'1'});
setAttrs({rhand7:'0'});
setAttrs({rfired7:'0'});
setAttrs({rfirel7:'1'});
setAttrs({rshot7:'0'});
setAttrs({rdrive7:'0'});
}
});
});
on('change:skilltype8',function(){
getAttrs(['skilltype8'],function(v){
let type=parseInt(v.skilltype8,10);
if (type<=2){
setAttrs({rangechka8:'1'});
setAttrs({rangechkb8:'0'});
setAttrs({rangechkc8:'0'});
setAttrs({dmgchka8:'1'});
setAttrs({dmgchkb8:'0'});
setAttrs({dmgchkc8:'0'});
setAttrs({dmgchkd8:'0'});
setAttrs({ammochk8:'0'});
setAttrs({radiuschk8:'0'});
setAttrs({rhand8:'1'});
setAttrs({rfired8:'0'});
setAttrs({rfirel8:'0'});
setAttrs({rshot8:'0'});
setAttrs({rdrive8:'0'});
} else if (type ==3 || type ==6){
setAttrs({rangechka8:'0'});
setAttrs({rangechkb8:'1'});
setAttrs({rangechkc8:'0'});
setAttrs({dmgchka8:'0'});
setAttrs({dmgchkb8:'1'});
setAttrs({dmgchkc8:'0'});
setAttrs({dmgchkd8:'0'});
setAttrs({ammochk8:'1'});
setAttrs({radiuschk8:'0'});
setAttrs({rhand8:'0'});
setAttrs({rfired8:'1'});
setAttrs({rfirel8:'0'});
setAttrs({rshot8:'0'});
setAttrs({rdrive8:'0'});
} else if (type == 5){
setAttrs({rangechka8:'0'});
setAttrs({rangechkb8:'0'});
setAttrs({rangechkc8:'1'});
setAttrs({dmgchka8:'0'});
setAttrs({dmgchkb8:'0'});
setAttrs({dmgchkc8:'0'});
setAttrs({dmgchkd8:'1'});
setAttrs({ammochk8:'1'});
setAttrs({radiuschk8:'0'});
setAttrs({rhand8:'0'});
setAttrs({rfired8:'0'});
setAttrs({rfirel8:'0'});
setAttrs({rshot8:'1'});
setAttrs({rdrive8:'0'});
} else{
setAttrs({rangechka8:'0'});
setAttrs({rangechkb8:'1'});
setAttrs({rangechkc8:'0'});
setAttrs({dmgchka8:'0'});
setAttrs({dmgchkb8:'0'});
setAttrs({dmgchkc8:'1'});
setAttrs({dmgchkd8:'0'});
setAttrs({ammochk8:'1'});
setAttrs({radiuschk8:'1'});
setAttrs({rhand8:'0'});
setAttrs({rfired8:'0'});
setAttrs({rfirel8:'1'});
setAttrs({rshot8:'0'});
setAttrs({rdrive8:'0'});
}
});
});
on("change:modskillchk change:customskillmod",function(){
getAttrs(['modskillchk', 'customskillmod'],function(v){
if (v.modskillchk == 'normal'){
let numb=parseInt(v.customskillmod,10)||0;
if (numb<-99){numb=-99;}
if (numb>99){numb=99;}
setAttrs({modskillchk_tot: numb});
}
else if (v.modskillchk =='trivial'){
let val=40;
setAttrs({modskillchk_tot: val});
}
else if (v.modskillchk=='easy'){
let val=20;
setAttrs({modskillchk_tot: val});
}
else if (v.modskillchk=='hard'){
let val=-20;
setAttrs({modskillchk_tot: val});
}
else if (v.modskillchk=='impossible'){
let val=-40;
setAttrs({modskillchk_tot: val});
}
}) ;
});
on("change:modskillchk_npc change:customskillmod_npc",function(){
getAttrs(['modskillchk_npc', 'customskillmod_npc'],function(v){
if (v.modskillchk_npc == 'normal'){
let numb=parseInt(v.customskillmod_npc,10)||0;
if (numb<-99){numb=-99;}
if (numb>99){numb=99;}
setAttrs({modskillchk_tot_npc: numb});
}
else if (v.modskillchk_npc =='trivial'){
let val=40;
setAttrs({modskillchk_tot_npc: val});
}
else if (v.modskillchk_npc=='easy'){
let val=20;
setAttrs({modskillchk_tot_npc: val});
}
else if (v.modskillchk_npc=='hard'){
let val=-20;
setAttrs({modskillchk_tot_npc: val});
}
else if (v.modskillchk_npc=='impossible'){
let val=-40;
setAttrs({modskillchk_tot_npc: val});
}
}) ;
});
on("change:switch_sheet", function(){
getAttrs(['switch_sheet'],function(v){
setAttrs({is_npc: v.switch_sheet});
});
});
on("clicked:resetskillmod", function(){
let value=0;
let mark='normal';
setAttrs({customskillmod:value});
setAttrs({modskillchk:mark});
setAttrs({customskillmod_npc:value});
setAttrs({modskillchk_npc:mark});
});
on("clicked:resetattackmod", function(){
let value=0;
let mark='normal';
setAttrs({customattackmod:value});
setAttrs({aimchk:value});
setAttrs({calledshot1:value});
setAttrs({calledshot2:value});
setAttrs({attackmodchk:value});
setAttrs({rangeshotchk:mark});
});
on('sheet:opened change:customattackmod change:aimchk change:calledshot1 change:calledshot2 change:attackmodchk change:rangeshotchk', function(){
getAttrs(['customattackmod','aimchk','calledshot1','calledshot2','attackmodchk','rangeshotchk'],function(v){
let totalbonus = (parseInt(v.attackmodchk,10)||0)*v.customattackmod;
totalbonus+=(parseInt(v.aimchk,10)||0)*20;
totalbonus+=(parseInt(v.calledshot1,10)||0)*(-20);
totalbonus+=(parseInt(v.calledshot2,10)||0)*(-20);
let distbonus=0;
if (v.rangeshotchk=='pointblank'){
distbonus=20;
} else if (v.rangeshotchk == '2x'){
distbonus=-20;
} else if (v.rangeshotchk == '5x'){
distbonus=-40;
}
setAttrs({totattackmod: totalbonus});
setAttrs({totdistmod: distbonus});
});
});
on("clicked:resetviolence", function(){
setAttrs({check_violence_1: 0});
setAttrs({check_violence_2: 0});
setAttrs({check_violence_3: 0});
});
on("clicked:resethelplessness", function(){
let value=0;
let mark='normal';
setAttrs({check_helplessness_1:0});
setAttrs({check_helplessness_2:0});
setAttrs({check_helplessness_3:0});
});
/* Long String of function easy logic*/
var adaptv=[0,0,0];
var adapth=[0,0,0];
function getSum(total, num) {
return total + Math.round(num);
}
on("sheet:opened change:bodyarmorrating change:coverrating change:armorrating",function(){
getAttrs(['bodyarmorrating','coverrating','armorrating'],function(v){
let body=parseInt(v.bodyarmorrating,10)||0;
let cover=parseInt(v.coverrating,10)||0;
if (body<0){body=0;}
if (cover<0){cover=0;}
let totarmor=cover+body;
setAttrs({bodyarmorrating: body});
setAttrs({coverrating: cover});
setAttrs({armorrating: totarmor});
if (cover<=0){
setAttrs({armorvalue: ' '});
} else {
setAttrs({armorvalue: 'Lethality Fails'});
}
});
});
on("change:check_violence_1 change:check_violence_2 change:check_violence_3 change:check_helplessness_1 change:check_helplessness_2 change:check_helplessness_3",function(){
getAttrs(['check_violence_1', 'check_violence_2','check_violence_3','check_helplessness_1', 'check_helplessness_2','check_helplessness_3'],function(v){
const v1=parseInt(v.check_violence_1,10)||0;
const v2=parseInt(v.check_violence_2,10)||0;
const v3=parseInt(v.check_violence_3,10)||0;
let vold=adaptv.reduce(getSum);
adaptv[0]=v1;
adaptv[1]=v2;
adaptv[2]=v3;
let Sv=adaptv.reduce(getSum,0);
const h1=parseInt(v.check_helplessness_1,10)||0;
const h2=parseInt(v.check_helplessness_2,10)||0;
const h3=parseInt(v.check_helplessness_3,10)||0;
let hold=adapth.reduce(getSum,0);
adapth[0]=h1;
adapth[1]=h2;
adapth[2]=h3;
let Sh=adapth.reduce(getSum,0);
if (Sv>vold){
if (Sv>=10){
setAttrs({check_violence_1: '1'});
}
if (Sv>=100){
setAttrs({check_violence_2: '10'});
}
}
if (Sv<vold){
if (Sv<=110){
setAttrs({check_violence_3: 0});
}
if (Sv<=10){
setAttrs({check_violence_2: 0});
}
}
if (Sh>hold){
if(Sh>=10){
setAttrs({check_helplessness_1: '1'});
}
if (Sh>=100){
setAttrs({check_helplessness_2: '10'});
}
}
if (Sh<hold){
if (Sh<=110){
setAttrs({check_helplessness_3: 0});
}
if(Sh<=10){
setAttrs({check_helplessness_2: 0});
}
}
});
});
// === SHEET VERSIONING
on('sheet:opened', () => {
getAttrs(['version'], values => { versioning(parseFloat(values.version) || 1); });
});
const versioning = (version) => {
console.log(`%c Versioning, ${version}`, 'color: green; font-weight:bold');
if (version < 1.5) {
version_0_150();
}
else if (version <1.8) {
version_150_180();
}
};
// UPDATE TO VERSION 1.05
const version_0_150= () => {
let codeversion=1.5;
let updates={};
getAttrs(['version','firsttime','name','sex','v1','v2','v3','h1','h2','h3','special1','special2','special3','special4','special5','special6','special_skill1','special_skill2','special_skill3','special_skill4','special_skill5','special_skill6'],function(v){
if(v.version < 1.5) {
//updates=[{'version': '1.2'} , {'gender': attrs['sex'] ||''}, {'violence_1': attrs['v1'] ||''}, {'violence_2': attrs['v2'] ||''}, {'violence_3': attrs['v3'] ||''}, {'helpness_1': attrs['h1'] ||''}, {'helpness_2': attrs['h2'] ||''}, {'helpness_3': attrs['h3'] ||''}, ]
updates.firsttime=0;
if(v.name) {
updates.character_name = v.name;
}
if(v.sex) {
updates.gender = v.sex;
}
if(v.v1) {
updates.violence_1 = v.v1;
}
if(v.v2) {
updates.violence_2 = v.v2;
}
if(v.v3) {
updates.violence_3 = v.v3;
}
if(v.h1) {
updates.helpness_1 = v.h1;
}
if(v.h2) {
updates.helpness_2 = v.h2;
}
if(v.h3) {
updates.helpness_3 = v.h3;
}
// updates.version = 1.5;
// setAttrs(updates);
let data = [{newtraining: v.special1 ||'', skilltraining: v.special_skill1 ||''}, {newtraining: v.special2 ||'', skilltraining: v.special_skill2 ||''}, {newtraining: v.special3 ||'', skilltraining: v.special_skill3 ||''}, {newtraining: v.special4 ||'', skilltraining: v.special_skill4 ||''}, {newtraining: v.special5 ||'', skilltraining: v.special_skill5 ||''}, {newtraining: v.special6 ||'', skilltraining: v.special_skill6 ||''} ].filter(o => (o.newtraining || o.skilltraining));
fillRepeatingSectionFromData('repeating_training', data);
}
console.log(`%c updates`, 'color: green; font-weight:bold');
console.info(updates);
setAttrs(updates, //Update attributes
{silent:true}, // will not trigger sheet workers
versioning(codeversion)); // call versioning again
});
};
// UPDATE TO VERSION 1.8
const version_150_180 = () => {
let codeversion=1.8;
let update={version:codeversion,
firsttime:0,
};
console.log(`%c update`, 'color: green; font-weight:bold');
console.info(update);
setAttrs(update, //Update attributes
{silent:true}, // will not trigger sheet workers
versioning(codeversion)); // call versioning again
};
let checkstim=['stim1_chk','stim2_chk','hardstim1_chk','hardstim2_chk','exhaustion_chk'];
on(checkstim.map(str => `change:${str}`).join(' '),function(){
getAttrs(checkstim,function(v){
let sum=0;
let sec=0;
for (let i=0; i < (checkstim.length)-1; i++){
sum += (parseInt(v[checkstim[i]],10) || 0);
}
sec=(parseInt(v[checkstim[4]],10) || 0);
if ((sum>=1) && (sec==1)) {
setAttrs({stim_chk: 1});
}
else{
setAttrs({stim_chk: 0});
}
});
});
on('change:sedatives_chk', function(){
getAttrs(["sedatives_chk"],function(v){
setAttrs({
exhaustion_chk: v.sedatives_chk
});
});
});
on('change:exhaustion_chk', function(){
getAttrs(["exhaustion_chk"], function(v){
if (v.exhaustion_chk ==0){
setAttrs({
sedatives_chk: v.exhaustion_chk
});
}
});
});
on('change:stim1_chk',function(){
getAttrs(["stim1_chk"],function(v){
if(v.stim1_chk==1){
setAttrs({stim1_time: Math.floor(Math.random()*6+1)});
setAttrs({hardstim1_chk: 0});
setAttrs({hardstim2_chk: 0});
}
if(v.stim1_chk==0){
setAttrs({stim2_chk: 0});
setAttrs({stim1_time: 0});
}
});
});
on("change:stim2_chk",function(){
getAttrs(["stim2_chk","wp"],function(v){
setAttrs({stim_wp:0});
if(v.stim2_chk==1){
setAttrs({stim2_time: Math.floor(Math.random()*6+1)});
setAttrs({stim1_chk: 1});
setAttrs({hardstim1_chk: 0});
setAttrs({hardstim2_chk: 0});
setAttrs({stim_wp: Math.floor(Math.random()*6+1)});
}
if(v.stim2_chk==0){
setAttrs({stim2_time: 0});
}
});
});
on("change:hardstim1_chk",function(){
getAttrs(["hardstim1_chk"],function(v){
if(v.hardstim1_chk==1){
setAttrs({hardstim1_time: Math.floor(Math.random()*6+1)+Math.floor(Math.random()*6+1)});
setAttrs({stim1_chk: 0});
setAttrs({stim2_chk: 0});
}
if(v.hardstim1_chk==0){
setAttrs({hardstim2_chk: 0});
setAttrs({hardstim1_time: 0});
}
});
});
on("change:hardstim2_chk",function(){
getAttrs(["hardstim2_chk","wp"],function(v){
setAttrs({
hardstim_wp:0
});
if(v.hardstim2_chk==1){
setAttrs({hardstim2_time: Math.floor(Math.random()*6+1)+Math.floor(Math.random()*6+1)});
setAttrs({hardstim1_chk: 1});
setAttrs({stim1_chk: 0});
setAttrs({stim2_chk: 0});
setAttrs({hardstim_wp: Math.floor(Math.random()*6+1)});
}
if(v.hardstim2_chk==0){
setAttrs({hardstim2_time: 0});
}
});
});
// Modify wp due to 2nd dose of stimulants
on("change:stim_wp",function(){
getAttrs(["stim_wp","wp"],function(v){
setAttrs({wp:Math.round(v.wp)-Math.round(v.stim_wp)});
});
});
on("change:hardstim_wp",function(){
getAttrs(["hardstim_wp","wp"],function(v){
setAttrs({wp:Math.round(v.wp)-Math.round(v.hardstim_wp)});
});
});
// Functions that compute the total armor protection due to equipment and cover
on('change:armor1_chk change:armor2_chk change:cover_chk ', function(){
getAttrs(["armor1_chk","armor2_chk","cover_chk","armor1","armor2","cover"],function(v){
setAttrs({tmp_armor: (Math.round(v.armor1_chk)*Math.round(v.armor1) ) + (Math.round(v.armor2_chk)*Math.round(v.armor2) ) + (Math.round(v.cover_chk)*Math.round(v.cover))});
});
});
// Functions for special combat actions modifiers
on("change:pcovered_chk", function(){
getAttrs(["pcovered_chk"],function(v){
if(v.pcovered_chk==1){
setAttrs({fcovered_chk: 0});
setAttrs({rapidfire_chk: 0});
setAttrs({stunshot_chk: 0});
setAttrs({fleshwoundshot_chk: 0});
setAttrs({headshot_chk: 0});
}
});
});
on("change:fcovered_chk", function(){
getAttrs(["fcovered_chk"],function(v){le
if(v.fcovered_chk==1){
setAttrs({pcovered_chk: 0});
setAttrs({rapidfire_chk: 0});
setAttrs({stunshot_chk: 0});
setAttrs({fleshwoundshot_chk: 0});
setAttrs({headshot_chk: 0});
}
});
});
on("change:rapidfire_chk", function(){
getAttrs(["rapidfire_chk"],function(v){
if(v.rapidfire_chk==1){
setAttrs({pcovered_chk: 0});
setAttrs({fcovered_chk: 0});
setAttrs({stunshot_chk: 0});
setAttrs({fleshwoundshot_chk: 0});
setAttrs({headshot_chk: 0});
}
});
});
on("change:stunshot_chk", function(){
getAttrs(["stunshot_chk"],function(v){
if(v.stunshot_chk==1){
setAttrs({pcovered_chk: 0});
setAttrs({fcovered_chk: 0});
setAttrs({rapidfire_chk: 0});
setAttrs({fleshwoundshot_chk: 0});
setAttrs({headshot_chk: 0});
}
});
});
on("change:fleshwoundshot_chk", function(){
getAttrs(["fleshwoundshot_chk"],function(v){
if(v.fleshwoundshot_chk==1){
setAttrs({pcovered_chk: 0});
setAttrs({fcovered_chk: 0});
setAttrs({rapidfire_chk: 0});
setAttrs({stunshot_chk: 0});
setAttrs({headshot_chk: 0});
}
});
});
on(" change:headshot_chk", function(){
getAttrs(["headshot_chk"],function(v){
if(v.headshot_chk==1){
setAttrs({pcovered_chk: 0});
setAttrs({fcovered_chk: 0});
setAttrs({rapidfire_chk: 0});
setAttrs({stunshot_chk: 0});
setAttrs({fleshwoundshot_chk: 0});
}
});
});
// Breaking points unconcious, stunned, incapacitated and death
on('sheet:opened change:wp change:hp change:san change:wp_max change:hp_max change:san_max',function(){
getAttrs(["wp","lowwill_chk","wp_max","hp","unconscious_chk","death_chk","hp_max","san","bp","san_max","pow" ],function(v){
// Set Up the value with its max if above limit
if(Math.floor(v.wp)>Math.floor(v.wp_max)){
setAttrs({wp: Math.floor(v.wp_max)});
}
if(Math.floor(v.hp)>Math.floor(v.hp_max)){
setAttrs({hp: Math.floor(v.hp_max)});
}
if(Math.floor(v.san)>Math.floor(v.san_max)){
setAttrs({san: Math.floor(v.san_max)});
}
// Check Special Conditions
if((Math.floor(v.hp)>2) && (Math.floor(v.unconscious_chk)==1)){
setAttrs({unconscious_chk: 0});
setAttrs({death_chk: 0});
}
if((Math.floor(v.hp)<=2)){
setAttrs({unconscious_chk: 1});
setAttrs({death_chk: 0});
}
if((Math.floor(v.hp)<=0) && (Math.floor(v.death_chk)==0)){
setAttrs({death_chk: 1});
setAttrs({hp: 0});
}
if((Math.floor(v.wp)>2) && (Math.floor(v.lowwill_chk)==1)){
setAttrs({lowwill_chk: 0});
}
if((Math.floor(v.wp)<=2) && (Math.floor(v.lowwill_chk)==0)){
setAttrs({lowwill_chk: 1});
}
if(Math.floor(v.wp)<0){
setAttrs({wp: 0});
}
if(Math.floor(v.san)<=Math.floor(v.bp)){
setAttrs({bp: Math.max(Math.floor(v.san)-Math.floor(v.pow),0) });
}
if(Math.floor(v.san)<=0){
setAttrs({san: 0});
setAttrs({insane_chk:1});
}
});
});
// stats and skills
on("sheet:opened change:unnatural", function() {
getAttrs(["unnatural"], function(values) {
setAttrs({san_max: 99-Math.floor(values.unnatural)});
});
});
// I need this to take in account the changing BP changing the POW
on('sheet:opened',function(){
getAttrs(['pow'],function(v){
setAttrs({pow_tmp: v.pow});
});
});
on('sheet:opened change:bp_diff',function(){
getAttrs(['bp_diff','bp'],function(v){
setAttrs({bp: Math.max(Math.floor(v.bp)+Math.floor(v.bp_diff),0)});
setAttrs({bp_diff: 0});
});
});
on('sheet:opened change:str change:con change:pow change:dex change:int change:cha', function() {
getAttrs(["str","con","pow","dex","int","cha","pow_tmp"], function(values) {
setAttrs({strx5: Math.floor(values.str * 5)});
setAttrs({conx5: Math.floor(values.con * 5)});
setAttrs({powx5: Math.floor(values.pow * 5)});
setAttrs({dexx5: Math.floor(values.dex * 5)});
setAttrs({intx5: Math.floor(values.int * 5)});
setAttrs({chax5: Math.floor(values.cha * 5)});
setAttrs({wp_max: Math.floor(values.pow)});
setAttrs({hp_max: Math.floor((Math.floor(values.str) + Math.floor(values.con))/2)});
//if(Math.floor(values.pow_tmp)!=Math.floor(values.pow)){
//setAttrs({bp_diff:Math.floor(values.pow_tmp)-Math.floor(values.pow)});
//}
if (values.str<=4){
setAttrs({str_mod: (-2)});
}else if (values.str<=8 && values.str>=5 ){
setAttrs({str_mod: (-1)});
}else if (values.str<=12 && values.str>=9){
setAttrs({str_mod: 0});
}else if (values.str<=16 && values.str>=13){
setAttrs({str_mod: 1});
}else if (values.str>=17){
setAttrs({str_mod: 2});
}
});
});
// Projection on bonds
on("change:bond_projection_1 change:bond_projection_2 change:bond_projection_3 change:bond_projection_4 change:bond_projection_5 change:bond_projection_6 change:bond_projection_7 change:bond_projection_8 change:bond_projection_9 change:bond_projection_10 ", function(v){
let proj=v.sourceAttribute;
let tmp=proj.split("_");
let num=tmp[2];
let bond="bond_score_";
bond=bond.concat(num);
getAttrs([bond,proj,"wp"], function(values){
let bdiff=0;
let update={};
bdiff=Math.round(values[bond])-Math.round(values[proj]);
if (bdiff>0){
update[bond]=values[bond]-bdiff;
setAttrs(update);
setAttrs({
wp: (values.wp-bdiff)
});
}
else{
update[bond]=values[proj];
setAttrs(update);
}
});
});
on("ready change:bond_score_1 change:bond_score_2 change:bond_score_3 change:bond_score_4 change:bond_score_5 change:bond_score_6 change:bond_score_7 change:bond_score_8 change:bond_score_9 change:bond_score_10 ", function(v){
let bond=v.sourceAttribute;
let value_n=[];
getAttrs([bond],function(value1){
if (value1[bond]<0){
value_n = 0;
setAttrs({bond: 0});
}else{
value_n=parseInt(value1[bond])||0;
}
let tmp=bond.split("_");
let num=tmp[2];
let proj="bond_projection_";
proj=proj.concat(num);
let bproj={};
bproj[proj]=value_n;
getAttrs([proj], function(value2){
if (value2[proj] !== value_n){
setAttrs(bproj);
}
}) ;
});
});
on("sheet:opened change:san",function(){
getAttrs(['san'],function(v){
let active_num=99;
active_num=active_num-Math.floor(v.san);
setAttrs({ritualactivation: active_num});
});
});
on("sheet:opened change:ritualdmgtype1",function(){
getAttrs(['ritualdmgtype1'],function(v){
let r=parseInt(v.ritualdmgtype1,10);
if(r==1){
setAttrs({ritualdmgchk1:1});
setAttrs({ritualrollchk1:1});
}
if(r==2){
setAttrs({ritualdmgchk1:0});
setAttrs({ritualrollchk1:0});
}
});
});
on("sheet:opened change:ritualdmgtype2",function(){
getAttrs(['ritualdmgtype2'],function(v){
let r=parseInt(v.ritualdmgtype2,10);
if(r==1){
setAttrs({ritualdmgchk2:1});
setAttrs({ritualrollchk2:1});
}
if(r==2){
setAttrs({ritualdmgchk2:0});
setAttrs({ritualrollchk2:0});
}
});
});
on("sheet:opened change:ritualdmgtype3",function(){
getAttrs(['ritualdmgtype3'],function(v){
let r=parseInt(v.ritualdmgtype3,10);
if(r==1){
setAttrs({ritualdmgchk3:1});
setAttrs({ritualrollchk3:1});
}
if(r==2){
setAttrs({ritualdmgchk3:0});
setAttrs({ritualrollchk3:0});
}
});
});
on("sheet:opened change:ritualdmgtype4",function(){
getAttrs(['ritualdmgtype4'],function(v){
let r=parseInt(v.ritualdmgtype4,10);
if(r==1){
setAttrs({ritualdmgchk4: 1});
setAttrs({ritualrollchk4: 1});
}
if(r==2){
setAttrs({ritualdmgchk4: 0});
setAttrs({ritualrollchk4: 1});
}
});
});
on("sheet:opened change:ritualdmgtype5",function(){
getAttrs(['ritualdmgtype5'],function(v){
let r=parseInt(v.ritualdmgtype5,10);
if(r==1){
setAttrs({ritualdmgchk5: 1});
setAttrs({ritualrollchk5: 1});
}
if(r==2){
setAttrs({ritualdmgchk5: 0});
setAttrs({ritualrollchk5: 0});
}
});
});
on("sheet:opened change:specialdmgtype1",function(){
getAttrs(['specialdmgtype1'],function(v){
let r=parseInt(v.specialdmgtype1,10);
if(r==1){
setAttrs({specialdmgchk1:1});
setAttrs({specialrollchk1:1});
}
if(r==2){
setAttrs({specialdmgchk1:0});
setAttrs({specialrollchk1:0});
}
});
});
on("sheet:opened change:specialdmgtype2",function(){
getAttrs(['specialdmgtype2'],function(v){
let r=parseInt(v.specialdmgtype2,10);
if(r==1){
setAttrs({specialdmgchk2:1});
setAttrs({specialrollchk2:1});
}
if(r==2){
setAttrs({specialdmgchk2:0});
setAttrs({specialrollchk2:0});
}
});
});
on("sheet:opened change:specialdmgtype3",function(){
getAttrs(['specialdmgtype3'],function(v){
let r=parseInt(v.specialdmgtype3,10);
if(r==1){
setAttrs({specialdmgchk3:1});
setAttrs({specialrollchk3:1});
}
if(r==2){
setAttrs({specialdmgchk3:0});
setAttrs({specialrollchk3:0});
}
});
});
on("sheet:opened change:specialdmgtype4",function(){
getAttrs(['specialdmgtype4'],function(v){
let r=parseInt(v.specialdmgtype4,10);
if(r==1){
setAttrs({specialdmgchk4: 1});
setAttrs({specialrollchk4: 1});
}
if(r==2){
setAttrs({specialdmgchk4: 0});
setAttrs({specialrollchk4: 1});
}
});
});
//generalmod.map(str => `change:${str}_chk`);
on('sheet:opened '+ generalmodchk.map(str => `change:${str}`).join(' '), function(){
getAttrs(generalmod.concat(generalmodchk),function(v){
let sum=0;
for (let i=0; i < (generalmod.length); i++){
sum += ( parseInt(v[generalmod[i]],10) * (parseInt(v[generalmodchk[i]],10) || 0) );
}
setAttrs({totalgeneralmod: sum});
});
});
</script>
<input type="number" name="attr_version" value="1.8"/>
<input type="hidden" name="attr_firsttime" value="1"/>
<input type="hidden" name="attr_lowwill_chk" value="0"/>
<div class="manila">
<div class="side1">
<input type="checkbox" class="switch-sheet" name="attr_switch_sheet" value="1" /><span class="sheet-is-npc-tab"></span>
</div>
<div class="main">
<div class="wrapper-character"> <!-- invisible activate by switch_sheet -->
<div class="container ">
<input class="sheet-is-npc" type="checkbox" name="attr_switch_sheet" value="1" readonly/>
<div class="npc ">
<div class=" flipper">
<div class="front ">
<div class="paper ">
<span class="spacer2"></span>
<div class="maindiv" style="height:60px">
<label class='sectionHeader '>
<input type="radio" style=name="attr_flipnpc" class="switch-page2" value="off" checked disabled/><img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/header.png?raw=true" style="height:60px;width:100%;margin-left:-12px;object-fit: cover;" style="align:center" alignk>
</label>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column left" >
<table style="border:hidden">
<tr>
<th class="center" height="30px"> NAME AND DESCRIPTION</th>
</tr>
<tr>
<td style="padding:none">
<p>NAME: <input type="text" name="attr_name" style="text-align:left" value="" width="100%"></p>
<textarea class="mytextarea" name="attr_description" style="width:98.5%;height:2.5em;background-color: transparent;"></textarea>
</td>
</tr>
</table>
</div>
<div class="colspace"></div>
<div class="column right" >
<table style="border:hidden">
<tr>
<th class="center" height="30px"> SOURCE OF INFORMATION</th>
</tr>
<tr>
<td style="padding:none" >
<p>SAN LOSS: <input type="text" name="attr_sanloss" style="text-align:left" value="" width="100%"></p>
<textarea class="mytextarea" name="attr_clues" style="width:98.5%;height:2.5em;background-color: transparent;"></textarea>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column cmain adapt">
<table style="border:hidden;margin:0;padding:0" >
<tr style="margin:0;padding:0">
<th class="center" width="100%" height="30px"><span >DIFFICULTY [<input type="number" class="totalmod" name="attr_modskillchk_tot" value="0" readonly>]</span></th>
</tr>
<tr>
<td class="center buttonfull" ><button class="button " type="action" name="act_resetskillmod">RESET</button></span></td>
</tr>
<tr class="center" height="50px">
<td class="center" height="50px">
<table class="subadapt">
<tr>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk_npc" value="trivial"/><span></span>+40</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk_npc" value="easy"/><span></span>+20</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk_npc" value="normal" checked="checked"/><span></span><input type="number" name="attr_customskillmod" value="0" height="20"></label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk_npc" value="hard" /><span></span>&#8722;20</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk_npc" value="impossible"/><span></span>&#8722;40</label></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column cmain">
<table style="border:hidden">
<tr>
<th class="center" height="30px"> STR</th>
<th class="center" height="30px"> CON</th>
<th class="center" height="30px"> DEX</th>
<th class="center" height="30px"> INT</th>
<th class="center" height="30px"> POW</th>
<th class="center" height="30px"> CHA</th>
<th class="center" height="30px"> HP</th>
<th class="center" height="30px"> WP</th>
<th class="center" height="30px"> SAN</th>
</tr>
<tr>
<td>
<input type="number" name="attr_str" value="10" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=STR roll}} {{score=[[@{str}]]}} {{score_d=[[floor(@{str}/10)]]}} {{score_u=[[@{str}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{strx5}/10)]]}} {{rating_u=[[@{strx5}%10]]}} {{normal_d=[[floor((@{strx5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{strx5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_str_check'/>
</td>
<td>
<input type="number" name="attr_con" value="10" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=CON roll}} {{score=[[@{con}]]}} {{score_d=[[floor(@{con}/10)]]}} {{score_u=[[@{con}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{conx5}/10)]]}} {{rating_u=[[@{conx5}%10]]}} {{normal_d=[[floor((@{conx5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{conx5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_con_check'/>
</td>
<td>
<input type="number" name="attr_dex" value="10" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=DEX roll}} {{score=[[@{dex}]]}} {{score_d=[[floor(@{dex}/10)]]}} {{score_u=[[@{dex}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{dexx5}/10)]]}} {{rating_u=[[@{dexx5}%10]]}} {{normal_d=[[floor((@{dexx5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{dexx5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_dex_check'/>
</td>
<td>
<input type="number" name="attr_int" value="10" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=INT roll}} {{score=[[@{int}]]}} {{score_d=[[floor(@{int}/10)]]}} {{score_u=[[@{int}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{intx5}/10)]]}} {{rating_u=[[@{intx5}%10]]}} {{normal_d=[[floor((@{intx5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{intx5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_int_check'/>
</td>
<td>
<input type="number" name="attr_pow" placeholder="-" value="" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=POW roll}} {{score=[[@{pow}]]}} {{score_d=[[floor(@{pow}/10)]]}} {{score_u=[[@{pow}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{powx5}/10)]]}} {{rating_u=[[@{powx5}%10]]}} {{normal_d=[[floor((@{powx5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{powx5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_pow_check'/>
</td>
<td>
<input type="number" name="attr_cha" value="10" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=CHA roll}} {{score=[[@{cha}]]}} {{score_d=[[floor(@{cha}/10)]]}} {{score_u=[[@{cha}%10]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{chax5}/10)]]}} {{rating_u=[[@{chax5}%10]]}} {{normal_d=[[floor((@{chax5}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{chax5}+@{modskillchk_tot_npc})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_cha_check'/>
</td>
<td>
<input type="number" name="attr_hp" value="10">/<input type="number" name="attr_hp_max" value="10">
</td>
<td>
<input type="number" name="attr_wp" value="10">/<input type="number" name="attr_wp_max" value="10">
</td>
<td>
<input type="number" name="attr_san" value="10">/<input type="number" name="attr_san_max" value="10">
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral">
<div class="verticaltext">DERIVED</div>
</div>
<div class="column left" >
<table class="generaltable">
<tr>
<td width="50%" class="headertable"></td>
<td class="headertable"> MAX </td>
<td class="headertable"> CURRENT </td>
<td width="10%" ></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" > &nbsp; Hit Points (HP)</td>
<td><input type="number" name="attr_hp_max" value="10"></td>
<td><input type="number" name="attr_hp" value="10"></td>
<td></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" > &nbsp; Willpower Points (WP)</td>
<td><input type="number" name="attr_wp_max" value="10"></td>
<td><input type="number" name="attr_wp" value="10"></td>
<td></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" > &nbsp;
Sanity (SAN)
</td>
<td><input type="number" name="attr_san_max" value="99"></td>
<td><input type="number" name="attr_san" placeholder="-" value=""></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll'value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot_npc}]]}} {{name=SAN roll}} {{rating_d=[[floor(@{san}/10)]]}} {{rating_u=[[@{san}%10]]}} {{normal_d=[[floor((@{san}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{san}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_san_check' /></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" > &nbsp; Breaking Point (BP)</td>
<td><input type="number" name="attr_bp_max" placeholder="-" value=""></td>
<td><input type="number" name="attr_bp" placeholder="-" value=""></td>
<td></td>
</tr>
</table>
</div>
<div class="colspace"></div>
<div class="column clateral" >
<div class="verticaltext">ARMOR</div>
</div>
<div class="column right" >
<table class="generaltable">
<tr>
<td style='text-align: center; width:26%'>TYPE</td>
<td style='text-align: center; width:55%'>DESCRIPTION</td>
<td style='text-align: center; width:19%'>RATING</td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Worn Armor</td>
<td><input type="text" name="attr_bodyarmorname" style='text-align: left;'></td>
<td><input type="number" name="attr_bodyarmorrating" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Cover</td>
<td><input type="text" name="attr_covername" style='text-align: left;'></td>
<td><input type="number" name="attr_coverrating" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Total</td>
<td>
<input type="text" name="attr_armorvalue" value="" class="nolight" style='text-align: center;' readonly/>
</td>
<td><input type="number" name="attr_armorrating" class="nolight" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: center;'>
OTHER NOTES
</td>
<td colspan="2">
<input type="text" name="attr_armorother" value="" style='text-align: left;width:100%'/>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral">
<div class="verticaltext">ATTACK</div>
</div>
<div class="column cmain">
<table class="generaltable" style="border:hidden;padding:0" >
<tr >
<td style='width:17%; text-align: center;' valign="bottom"> WEAPONS</td>
<td style='width:18%; text-align: center;' valign="bottom"> SKILL</td>
<td style='width:10%; text-align: center;' valign="bottom"> RANGE</td>
<td style='width:20%; text-align: center;' valign="bottom"> DAMAGE/LETHALITY</td>
<td style='width:09%; text-align: center;' valign="bottom"> KILL <br> RADIUS</td>
<td style='width:05%; text-align: center;' valign="bottom"> AP </td>
<td style='width:11%; text-align: center;' valign="bottom" > AMMO</td>
<td style='width:05%; text-align: center'><input readonly value="@{str_mod}" style="width:30px;text-align:left;" type="hidden"/> </td> </td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name1"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname1"/>
<select name="attr_skilltype1">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka1" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb1" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea1"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc1" />
<span class="switch-c">
<input type="number" name="attr_srangea1" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb1" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka1" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage1"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb1" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage1"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc1"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality1"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd1"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga1" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb1" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc1" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk1" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius1" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP1" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk1" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo1"/>/<input type="number" value="15" name="attr_maxammo1"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand1" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}+@{str_mod}]]}} {{damagec=[[(@{damage1})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired1"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{dist=[[0]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}]]}} {{damagec=[[(@{damage1})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel1"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{kradius=[[@{radius1}]]}} {{dist=[[0]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{accmod=[[0]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{lethal_d=[[@{lethality1}/10]]}} {{lethal_u=[[@{lethality1}%10]]}} {{lethal_cd=[[(@{lethality1}/10)*2]]}} {{lethal_cu=[[(@{lethality1}%10)*2]]}} {{lethality=[[@{lethality1}]]}} {{huge_l=[[@{lethality1}]]}} {{huge_lc=[[@{lethality1}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot1"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{dist=[[0]]}} {{base=[[@{srangea1}]]}} {{base2=[[@{srangeb1}]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damagea=[[@{shotgundmga1}]]}} {{damageb=[[@{shotgundmgb1}]]}} {{damagec=[[@{shotgundmgc1}]]}} {{damagea_c=[[@{shotgundmga1}*2]]}} {{damageb_c=[[@{shotgundmgb1}*2]]}} {{damagec_c=[[@{shotgundmgc1}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name2"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname2"/>
<select name="attr_skilltype2">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka2" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb2" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea2"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc2" />
<span class="switch-c">
<input type="number" name="attr_srangea1" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb2" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka2" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage2"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb2" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage2"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc2"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality2"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd2"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga2" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb2" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc2" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk2" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius2" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP2" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk2" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo2"/>/<input type="number" value="15" name="attr_maxammo2"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand2" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}+@{str_mod}]]}} {{damagec=[[(@{damage1})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired2"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{dist=[[0]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}]]}} {{damagec=[[(@{damage1})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel2"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{kradius=[[@{radius1}]]}} {{dist=[[0]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{accmod=[[0]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor((@{weaponrealskill1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{lethal_d=[[@{lethality1}/10]]}} {{lethal_u=[[@{lethality1}%10]]}} {{lethal_cd=[[(@{lethality1}/10)*2]]}} {{lethal_cu=[[(@{lethality1}%10)*2]]}} {{lethality=[[@{lethality1}]]}} {{huge_l=[[@{lethality1}]]}} {{huge_lc=[[@{lethality1}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot2"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{dist=[[0]]}} {{base=[[@{srangea2}]]}} {{base2=[[@{srangeb2}]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill2}/10)]]}} {{rating_u=[[(@{weaponrealskill2}%10)]]}} {{normal_d=[[floor((@{weaponrealskill2}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill2}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP2}]]}} {{damagea=[[@{shotgundmga2}]]}} {{damageb=[[@{shotgundmgb2}]]}} {{damagec=[[@{shotgundmgc2}]]}} {{damagea_c=[[@{shotgundmga2}*2]]}} {{damageb_c=[[@{shotgundmgb2}*2]]}} {{damagec_c=[[@{shotgundmgc2}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name3"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname3"/>
<select name="attr_skilltype3">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka3" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb3" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea3"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc3" />
<span class="switch-c">
<input type="number" name="attr_srangea3" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb3" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka3" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage3"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb3" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage3"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc3"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality3"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd3"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga3" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb3" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc3" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk3" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius3" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP3" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk3" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo3"/>/<input type="number" value="15" name="attr_maxammo3"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand3" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor((@{weaponrealskill3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damage=[[@{damage3}+@{str_mod}]]}} {{damagec=[[(@{damage3})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired3"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{dist=[[0]]}} {{base=[[@{rangea3}]]}} {{base2=[[@{rangea3}*2]]}} {{base5=[[@{rangea3}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor((@{weaponrealskill3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damage=[[@{damage3}]]}} {{damagec=[[(@{damage3})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel3"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{kradius=[[@{radius3}]]}} {{dist=[[0]]}} {{base=[[@{rangea3}]]}} {{base2=[[@{rangea3}*2]]}} {{base5=[[@{rangea3}*5]]}} {{accmod=[[0]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor((@{weaponrealskill3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{lethal_d=[[@{lethality3}/10]]}} {{lethal_u=[[@{lethality3}%10]]}} {{lethal_cd=[[(@{lethality3}/10)*2]]}} {{lethal_cu=[[(@{lethality3}%10)*2]]}} {{lethality=[[@{lethality3}]]}} {{huge_l=[[@{lethality3}]]}} {{huge_lc=[[@{lethality3}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot3"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{dist=[[0]]}} {{base=[[@{srangea3}]]}} {{base2=[[@{srangeb3}]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor((@{weaponrealskill3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damagea=[[@{shotgundmga3}]]}} {{damageb=[[@{shotgundmgb3}]]}} {{damagec=[[@{shotgundmgc3}]]}} {{damagea_c=[[@{shotgundmga3}*2]]}} {{damageb_c=[[@{shotgundmgb3}*2]]}} {{damagec_c=[[@{shotgundmgc3}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name4"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname4"/>
<select name="attr_skilltype4">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka4" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb4" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea4"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc4" />
<span class="switch-c">
<input type="number" name="attr_srangea4" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb4" style="width:2em;" value="50"/>m/<input type="text" value="1d10" name="attr_shotgundmgb4" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc4" style="width:4em;"/></span>
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka4" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage4"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb4" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage4"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc4"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality4"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd4"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga4" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb4" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc4" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk4" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius4" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP4" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk4" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo4"/>/<input type="number" value="15" name="attr_maxammo4"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand4" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor((@{weaponrealskill4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damage=[[@{damage4}+@{str_mod}]]}} {{damagec=[[(@{damage4})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired4"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{dist=[[0]]}} {{base=[[@{rangea4}]]}} {{base2=[[@{rangea4}*2]]}} {{base5=[[@{rangea4}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor((@{weaponrealskill4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damage=[[@{damage4}]]}} {{damagec=[[(@{damage4})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel4"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{kradius=[[@{radius4}]]}} {{dist=[[0]]}} {{base=[[@{rangea4}]]}} {{base2=[[@{rangea4}*2]]}} {{base5=[[@{rangea4}*5]]}} {{accmod=[[0]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor((@{weaponrealskill4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{lethal_d=[[@{lethality4}/10]]}} {{lethal_u=[[@{lethality4}%10]]}} {{lethal_cd=[[(@{lethality4}/10)*2]]}} {{lethal_cu=[[(@{lethality4}%10)*2]]}} {{lethality=[[@{lethality4}]]}} {{huge_l=[[@{lethality4}]]}} {{huge_lc=[[@{lethality4}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot4"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{dist=[[0]]}} {{base=[[@{srangea4}]]}} {{base2=[[@{srangeb4}]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor((@{weaponrealskill4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{weaponrealskill4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damagea=[[@{shotgundmga4}]]}} {{damageb=[[@{shotgundmgb4}]]}} {{damagec=[[@{shotgundmgc4}]]}} {{damagea_c=[[@{shotgundmga4}*2]]}} {{damageb_c=[[@{shotgundmgb4}*2]]}} {{damagec_c=[[@{shotgundmgc4}*2]]}}' />
</span>
</td>
</tr>
<!-- Special attacks -->
<tr>
<td><input type="text" value="Special" style="text-align:left" name="attr_special_name1"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="number" value="0" name="attr_skillspecial1"/>%
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialrange1" />m
</td>
<td style='text-align: center;'>
<select name="attr_specialdmgtype1" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_specialdmgchk1" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_specialdmg1" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_speciallethal1" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialradius1" />m
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialAP1" />
</td>
<td style='text-align: center;'>
<input type="number" value="15" name="attr_specialcurrentammo1"/>/<input type="number" value="15" name="attr_specialmaxammo1"/>
</td>
<td>
<input type="checkbox" value="1" class="block-switch" style="display:none" name="attr_specialrollchk1" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name1}}} {{skillname=special}} {{dist=[[0]]}} {{base=[[@{specialrange1}]]}} {{base2=[[@{specialrange1}*2]]}} {{base5=[[@{specialrange1}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial1}/10)]]}} {{rating_u=[[(@{skillspecial1}%10)]]}} {{normal_d=[[floor((@{skillspecial1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP1}]]}} {{damage=[[@{specialdmg1}]]}} {{damagec=[[(@{specialdmg1})*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name1}}} {{skillname= special}} {{kradius=[[@{specialradius1}]]}} {{dist=[[0]]}} {{base=[[@{specialrange1}]]}} {{base2=[[@{specialrange1}*2]]}} {{base5=[[@{specialrange1}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial1}/10)]]}} {{rating_u=[[(@{skillspecial1}%10)]]}} {{normal_d=[[floor((@{skillspecial1}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial1}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP1}]]}} {{lethal_d=[[@{speciallethal1}/10]]}} {{lethal_u=[[@{speciallethal1}%10]]}} {{lethal_cd=[[(@{speciallethal1}/10)*2]]}} {{lethal_cu=[[(@{speciallethal1}%10)*2]]}} {{lethality=[[@{speciallethal1}]]}} {{huge_l=[[@{speciallethal1}]]}} {{huge_lc=[[@{speciallethal1}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Special" style="text-align:left" name="attr_special_name2"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="number" value="0" name="attr_skillspecial2"/>%
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialrange2" />m
</td>
<td style='text-align: center;'>
<select name="attr_specialdmgtype2" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_specialdmgchk2" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_specialdmg2" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_speciallethal2" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialradius2" />m
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialAP2" />
</td>
<td style='text-align: center;'>
<input type="number" value="15" name="attr_specialcurrentammo2"/>/<input type="number" value="15" name="attr_specialmaxammo2"/>
</td>
<td>
<input type="checkbox" value="1" class="block-switch" style="display:none" name="attr_specialrollchk2" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name2}}} {{skillname=special}} {{dist=[[0]]}} {{base=[[@{specialrange2}]]}} {{base2=[[@{specialrange2}*2]]}} {{base5=[[@{specialrange2}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial2}/10)]]}} {{rating_u=[[(@{skillspecial2}%10)]]}} {{normal_d=[[floor((@{skillspecial2}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial2}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP2}]]}} {{damage=[[@{specialdmg2}]]}} {{damagec=[[(@{specialdmg2})*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name2}}} {{skillname= special}} {{kradius=[[@{specialradius2}]]}} {{dist=[[0]]}} {{base=[[@{specialrange2}]]}} {{base2=[[@{specialrange2}*2]]}} {{base5=[[@{specialrange2}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial2}/10)]]}} {{rating_u=[[(@{skillspecial2}%10)]]}} {{normal_d=[[floor((@{skillspecial2}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial2}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP2}]]}} {{lethal_d=[[@{speciallethal2}/10]]}} {{lethal_u=[[@{speciallethal2}%10]]}} {{lethal_cd=[[(@{speciallethal2}/10)*2]]}} {{lethal_cu=[[(@{speciallethal2}%10)*2]]}} {{lethality=[[@{speciallethal2}]]}} {{huge_l=[[@{speciallethal2}]]}} {{huge_lc=[[@{speciallethal2}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Special" style="text-align:left" name="attr_special_name3"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="number" value="0" name="attr_skillspecial3"/>%
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialrange3" />m
</td>
<td style='text-align: center;'>
<select name="attr_specialdmgtype3" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_specialdmgchk3" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_specialdmg3" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_speciallethal3" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialradius3" />m
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialAP3" />
</td>
<td style='text-align: center;'>
<input type="number" value="15" name="attr_specialcurrentammo3"/>/<input type="number" value="15" name="attr_specialmaxammo3"/>
</td>
<td>
<input type="checkbox" value="1" class="block-switch" style="display:none" name="attr_specialrollchk3" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name3}}} {{skillname=special}} {{dist=[[0]]}} {{base=[[@{specialrange3}]]}} {{base2=[[@{specialrange3}*2]]}} {{base5=[[@{specialrange3}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial3}/10)]]}} {{rating_u=[[(@{skillspecial3}%10)]]}} {{normal_d=[[floor((@{skillspecial3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP3}]]}} {{damage=[[@{specialdmg3}]]}} {{damagec=[[(@{specialdmg3})*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name3}}} {{skillname= special}} {{kradius=[[@{specialradius3}]]}} {{dist=[[0]]}} {{base=[[@{specialrange3}]]}} {{base2=[[@{specialrange3}*2]]}} {{base5=[[@{specialrange3}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial3}/10)]]}} {{rating_u=[[(@{skillspecial3}%10)]]}} {{normal_d=[[floor((@{skillspecial3}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial3}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP3}]]}} {{lethal_d=[[@{speciallethal3}/10]]}} {{lethal_u=[[@{speciallethal3}%10]]}} {{lethal_cd=[[(@{speciallethal3}/10)*2]]}} {{lethal_cu=[[(@{speciallethal3}%10)*2]]}} {{lethality=[[@{speciallethal3}]]}} {{huge_l=[[@{speciallethal3}]]}} {{huge_lc=[[@{speciallethal3}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Special" style="text-align:left" name="attr_special_name4"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="number" value="0" name="attr_skillspecial4"/>%
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialrange4" />m
</td>
<td style='text-align: center;'>
<select name="attr_specialdmgtype4" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_specialdmgchk4" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_specialdmg4" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_speciallethal4" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialradius4" />m
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_specialAP4" />
</td>
<td style='text-align: center;'>
<input type="number" value="15" name="attr_specialcurrentammo4"/>/<input type="number" value="15" name="attr_specialmaxammo4"/>
</td>
<td>
<input type="checkbox" value="1" class="block-switch" style="display:none" name="attr_specialrollchk4" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name4}}} {{skillname=special}} {{dist=[[0]]}} {{base=[[@{specialrange4}]]}} {{base2=[[@{specialrange4}*2]]}} {{base5=[[@{specialrange4}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial4}/10)]]}} {{rating_u=[[(@{skillspecial4}%10)]]}} {{normal_d=[[floor((@{skillspecial4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP4}]]}} {{damage=[[@{specialdmg4}]]}} {{damagec=[[(@{specialdmg4})*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{special_name4}}} {{skillname= special}} {{kradius=[[@{specialradius4}]]}} {{dist=[[0]]}} {{base=[[@{specialrange4}]]}} {{base2=[[@{specialrange4}*2]]}} {{base5=[[@{specialrange4}*5]]}} {{custom=[[@{modskillchk_tot_npc}]]}} {{rating_d=[[floor(@{skillspecial4}/10)]]}} {{rating_u=[[(@{skillspecial4}%10)]]}} {{normal_d=[[floor((@{skillspecial4}+@{modskillchk_tot_npc})/10)]]}} {{normal_u=[[(@{skillspecial4}+@{modskillchk_tot_npc})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{specialAP4}]]}} {{lethal_d=[[@{speciallethal4}/10]]}} {{lethal_u=[[@{speciallethal4}%10]]}} {{lethal_cd=[[(@{speciallethal4}/10)*2]]}} {{lethal_cu=[[(@{speciallethal4}%10)*2]]}} {{lethality=[[@{speciallethal4}]]}} {{huge_l=[[@{speciallethal4}]]}} {{huge_lc=[[@{speciallethal4}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral" >
<div class="verticaltext">SKILL</div>
</div>
<div class="column cmain" height="100%" >
<table class="skilltable">
<tr>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_accounting"/> Accounting (10%)</td>
<td width="5%"><input type="number" name="attr_accounting" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Accounting roll}} {{rating_d=[[floor(@{accounting}/10)]]}} {{rating_u=[[@{accounting}%10]]}} {{normal_d=[[floor((@{accounting}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{accounting}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_accounting_check' /></td>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_first_aid"/> First Aid (10%)</td>
<td width="5%"><input type="number" name="attr_first_aid" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=First Aid roll}} {{rating_d=[[floor(@{first_aid}/10)]]}} {{rating_u=[[@{first_aid}%10]]}} {{normal_d=[[floor((@{first_aid}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{first_aid}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_first_aid_check' /></td>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_ride"/> Ride (10%)</td>
<td width="5%"><input type="number" name="attr_ride" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Ride roll}} {{rating_d=[[floor(@{ride}/10)]]}} {{rating_u=[[@{ride}%10]]}} {{normal_d=[[floor((@{ride}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{ride}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_ride_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_alertness" /> Alertness (20%)</td>
<td><input type="number" name="attr_alertness" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Alertness roll}} {{rating_d=[[floor(@{alertness}/10)]]}} {{rating_u=[[@{alertness}%10]]}} {{normal_d=[[floor((@{alertness}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{alertness}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_alertness_check' /></td>
<td><input type="checkbox" name="attr_chk_forensics"/> Forensics (0%)</td>
<td><input type="number" name="attr_forensics" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Forensics roll}} {{rating_d=[[floor(@{forensics}/10)]]}} {{rating_u=[[@{forensics}%10]]}} {{normal_d=[[floor((@{forensics}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{forensics}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_forensics_check' /></td>
<td><input type="checkbox" name="attr_chk_science1"/>Science: <input type="text" style="width:80px; text-align:left;" name="attr_science1_name" value="Type"> </td>
<td><input type="number" name="attr_science1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{science1_name} roll}} {{rating_d=[[floor(@{science1}/10)]]}} {{rating_u=[[@{science1}%10]]}} {{normal_d=[[floor((@{science1}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{science1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_science1_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_anthropology" /> Anthropology (0%)</td>
<td><input type="number" name="attr_anthropology" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Anthropology roll}} {{rating_d=[[floor(@{anthropology}/10)]]}} {{rating_u=[[@{anthropology}%10]]}} {{normal_d=[[floor((@{anthropology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{anthropology}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_anthropology_check' /></td>
<td><input type="checkbox" name="attr_chk_heavy_machinery"/> Heavy Machinery (10%)</td>
<td><input type="number" name="attr_heavy_machinery" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Heavy Machinery roll}} {{rating_d=[[floor(@{heavy_machinery}/10)]]}} {{rating_u=[[@{heavy_machinery}%10]]}} {{normal_d=[[floor((@{heavy_machinery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{heavy_machinery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_heavy_machinery_check' /></td>
<td><input type="checkbox" name="attr_chk_science2"/>Science: <input type="text" style="width:80px; text-align:left;" name="attr_science2_name" value="Type"> </td>
<td><input type="number" name="attr_science2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{science2_name} roll}} {{rating_d=[[floor(@{science2}/10)]]}} {{rating_u=[[@{science2}%10]]}} {{normal_d=[[floor((@{science2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{science2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_science2_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_archeology"/> Archeology (0%)</td>
<td><input type="number" name="attr_archeology" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Archeology roll}} {{rating_d=[[floor(@{archeology}/10)]]}} {{rating_u=[[@{archeology}%10]]}} {{normal_d=[[floor((@{archeology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{archeology}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_archeology_check' /></td>
<td><input type="checkbox" name="attr_chk_heavy_weapons"/> Heavy Weapons (0%)</td>
<td><input type="number" name="attr_heavy_weapons" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Heavy Weapons roll}} {{rating_d=[[floor(@{heavy_weapons}/10)]]}} {{rating_u=[[@{heavy_weapons}%10]]}} {{normal_d=[[floor((@{heavy_weapons}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{heavy_weapons}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_heavy_weapons_check' /></td>
<td><input type="checkbox" name="attr_chk_search"/> Search (20%)</td>
<td><input type="number" name="attr_search" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Search roll}} {{rating_d=[[floor(@{search}/10)]]}} {{rating_u=[[@{search}%10]]}} {{normal_d=[[floor((@{search}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{search}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_search_check' /></td>
</tr>
<tr>
<td><input type="checkbox" name="attr_chk_art1"/>Art: <input type="text" style="width:80px; text-align:left;" name="attr_art1_name" value="Type"> </td>
<td><input type="number" name="attr_art1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{art1_name} roll}} {{rating_d=[[floor(@{art1}/10)]]}} {{rating_u=[[@{art1}%10]]}} {{normal_d=[[floor((@{art1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{art1}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_art1_check' /></td>
<td ><input type="checkbox" name="attr_chk_history" /> History (10%)</td>
<td><input type="number" name="attr_history" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=History roll}} {{rating_d=[[floor(@{history}/10)]]}} {{rating_u=[[@{history}%10]]}} {{normal_d=[[floor((@{history}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{history}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_history_check' /></td>
<td><input type="checkbox" name="attr_chk_sigint"/> SIGINT (0%)</td>
<td><input type="number" name="attr_sigint" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=SIGINT roll}} {{rating_d=[[floor(@{sigint}/10)]]}} {{rating_u=[[@{sigint}%10]]}} {{normal_d=[[floor((@{sigint}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{sigint}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_sigint_check' /></td>
</tr>
<tr>
<td><input type="checkbox" name="attr_chk_art2"/>Art: <input type="text" style="width:80px; text-align:left;" name="attr_art2_name" value="Type"> </td>
<td><input type="number" name="attr_art2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{art2_name} roll}} {{rating_d=[[floor(@{art2}/10)]]}} {{rating_u=[[@{art2}%10]]}} {{normal_d=[[floor((@{art2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{art2}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_art2_check' /></td>
<td ><input type="checkbox" name="attr_chk_humint" /> HUMINT (10%)</td>
<td><input type="number" name="attr_humint" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=HUMINT roll}} {{rating_d=[[floor(@{humint}/10)]]}} {{rating_u=[[@{humint}%10]]}} {{normal_d=[[floor((@{humint}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{humint}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_humint_check' /></td>
<td><input type="checkbox" name="attr_chk_stealth"/> Stealth (10%)</td>
<td><input type="number" name="attr_stealth" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Stealth roll}} {{rating_d=[[floor(@{stealth}/10)]]}} {{rating_u=[[@{stealth}%10]]}} {{normal_d=[[floor((@{stealth}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{stealth}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_stealth_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_artillery" /> Artillery (0%)</td>
<td><input type="number" name="attr_artillery" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Artillery roll}} {{rating_d=[[floor(@{artillery}/10)]]}} {{rating_u=[[@{artillery}%10]]}} {{normal_d=[[floor((@{artillery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{artillery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_artillery_check' /></td>
<td ><input type="checkbox" name="attr_chk_law" /> Law (0%)</td>
<td><input type="number" name="attr_law" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Law roll}} {{rating_d=[[floor(@{law}/10)]]}} {{rating_u=[[@{law}%10]]}} {{normal_d=[[floor((@{law}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{law}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_law_check' /></td>
<td ><input type="checkbox" name="attr_chk_surgery" /> Surgery (0%)</td>
<td><input type="number" name="attr_surgery" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Surgery roll}} {{rating_d=[[floor(@{surgery}/10)]]}} {{rating_u=[[@{surgery}%10]]}} {{normal_d=[[floor((@{surgery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{surgery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_surgery_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_athletics" /> Athletics (30%)</td>
<td><input type="number" name="attr_athletics" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Athletics roll}} {{rating_d=[[floor(@{athletics}/10)]]}} {{rating_u=[[@{athletics}%10]]}} {{normal_d=[[floor((@{athletics}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{athletics}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_athletics_check' /></td>
<td ><input type="checkbox" name="attr_chk_medicine" /> Medicine (0%)</td>
<td><input type="number" name="attr_medicine" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Medicine roll}} {{rating_d=[[floor(@{medicine}/10)]]}} {{rating_u=[[@{medicine}%10]]}} {{normal_d=[[floor((@{medicine}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{medicine}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_medicine_check' /></td>
<td ><input type="checkbox" name="attr_chk_survival" /> Survival (10%)</td>
<td><input type="number" name="attr_survival" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Survival roll}} {{rating_d=[[floor(@{survival}/10)]]}} {{rating_u=[[@{survival}%10]]}} {{normal_d=[[floor((@{survival}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{survival}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_survival_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_bureaucracy" /> Bureaucracy (10%)</td>
<td><input type="number" name="attr_bureaucracy" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Bureaucracy roll}} {{rating_d=[[floor(@{bureaucracy}/10)]]}} {{rating_u=[[@{bureaucracy}%10]]}} {{normal_d=[[floor((@{bureaucracy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{bureaucracy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_bureaucracy_check' /></td>
<td ><input type="checkbox" name="attr_chk_melee_weapons" /> Melee Weapons (30%)</td>
<td><input type="number" name="attr_melee_weapons" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=melee_weapons roll}} {{rating_d=[[floor(@{melee_weapons}/10)]]}} {{rating_u=[[@{melee_weapons}%10]]}} {{normal_d=[[floor((@{melee_weapons}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{melee_weapons}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_melee_weapons_check' /></td>
<td ><input type="checkbox" name="attr_chk_swim" /> Swim (20%)</td>
<td><input type="number" name="attr_swim" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Swim roll}} {{rating_d=[[floor(@{swim}/10)]]}} {{rating_u=[[@{swim}%10]]}} {{normal_d=[[floor((@{swim}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{swim}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_swim_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_computer_science" /> Computer Science (0%)</td>
<td><input type="number" name="attr_computer_science" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Computer Science roll}} {{rating_d=[[floor(@{computer_science}/10)]]}} {{rating_u=[[@{computer_science}%10]]}} {{normal_d=[[floor((@{computer_science}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{computer_science}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_computer_science_check' /></td>
<td ><input type="checkbox" name="attr_chk_military_science1" /> Military Sci: <input type="text" style="width:80px; text-align:left;" name="attr_military_science1_name" value="Type"> </td>
<td><input type="number" name="attr_military_science1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{military_science1_name} roll}} {{rating_d=[[floor(@{military_science1}/10)]]}} {{rating_u=[[@{military_science1}%10]]}} {{normal_d=[[floor((@{military_science1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{military_science1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_military_science1_check' /></td>
<td ><input type="checkbox" name="attr_chk_unarmed_combat" /> Unarmed Combat (40%)</td>
<td><input type="number" name="attr_unarmed_combat" value="40"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Unarmed Combat roll}} {{rating_d=[[floor(@{unarmed_combat}/10)]]}} {{rating_u=[[@{unarmed_combat}%10]]}} {{normal_d=[[floor((@{unarmed_combat}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{unarmed_combat}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_unarmed_combat_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_craft1" /> Craft: <input type="text" style="width:80px; text-align:left;" name="attr_craft1_name" value="Type"></td>
<td><input type="number" name="attr_craft1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{craft1_name} roll}} {{rating_d=[[floor(@{craft1}/10)]]}} {{rating_u=[[@{craft1}%10]]}} {{normal_d=[[floor((@{craft1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{craft1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_craft1_check' /></td>
<td ><input type="checkbox" name="attr_chk_military_science2" /> Military Sci: <input type="text" style="width:80px; text-align:left;" name="attr_military_science2_name" value="Type"> </td>
<td><input type="number" name="attr_military_science2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{military_science2_name} roll}} {{rating_d=[[floor(@{military_science2}/10)]]}} {{rating_u=[[@{military_science2}%10]]}} {{normal_d=[[floor((@{military_science2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{military_science2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_military_science2_check' /></td>
<td >&nbsp; &nbsp; &nbsp; Unnatural (0%)</td>
<td ><input type="number" name="attr_unnatural" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=unnatural roll}} {{rating_d=[[floor(@{unnatural}/10)]]}} {{rating_u=[[@{unnatural}%10]]}} {{normal_d=[[floor((@{unnatural}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{unnatural}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_unnatural_check' /> </td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_craft2" /> Craft: <input type="text" style="width:80px; text-align:left;" name="attr_craft2_name" value="Type"></td>
<td><input type="number" name="attr_craft2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{craft2_name} roll}} {{rating_d=[[floor(@{craft2}/10)]]}} {{rating_u=[[@{craft2}%10]]}} {{normal_d=[[floor((@{craft2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{craft2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_craft2_check' /></td>
<td ><input type="checkbox" name="attr_chk_navigate" /> Navigate (10%)</td>
<td><input type="number" name="attr_navigate" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Navigate roll}} {{rating_d=[[floor(@{navigate}/10)]]}} {{rating_u=[[@{navigate}%10]]}} {{normal_d=[[floor((@{navigate}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{navigate}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_navigate_check' /></td>
<td rowspan="7" colspan="3" style="padding: 0px;border:1px;text-align:center;height:100%">
<div class="fixedarea_skill">
<table class="sheet-internal" style="height:100%" width="100%">
<tr style="border-top:1px">
<td width="75%" ><input type="checkbox" name="attr_chk_skill_1" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_1" /></td>
<td width="15%"><input type="number" name="attr_skill_score_1"/></td>
<td width="15%" class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_1} roll}} {{rating_d=[[floor(@{skill_score_1}/10)]]}} {{rating_u=[[@{skill_score_1}%10]]}} {{normal_d=[[floor((@{skill_score_1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_1' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_2" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_2" /></td>
<td><input type="number" name="attr_skill_score_2"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_2} roll}} {{rating_d=[[floor(@{skill_score_2}/10)]]}} {{rating_u=[[@{skill_score_2}%10]]}} {{normal_d=[[floor((@{skill_score_2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_2' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_3" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_3" /></td>
<td><input type="number" name="attr_skill_score_3"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_3} roll}} {{rating_d=[[floor(@{skill_score_3}/10)]]}} {{rating_u=[[@{skill_score_3}%10]]}} {{normal_d=[[floor((@{skill_score_3}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_3}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_3' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_4" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_4" /></td>
<td><input type="number" name="attr_skill_score_4"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_4} roll}} {{rating_d=[[floor(@{skill_score_4}/10)]]}} {{rating_u=[[@{skill_score_4}%10]]}} {{normal_d=[[floor((@{skill_score_4}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_4}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_4' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_5" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_5" /></td>
<td><input type="number" name="attr_skill_score_5"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_5} roll}} {{rating_d=[[floor(@{skill_score_5}/10)]]}} {{rating_u=[[@{skill_score_5}%10]]}} {{normal_d=[[floor((@{skill_score_5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_5' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_6" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_6" /></td>
<td><input type="number" name="attr_skill_score_6"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_6} roll}} {{rating_d=[[floor(@{skill_score_6}/10)]]}} {{rating_u=[[@{skill_score_6}%10]]}} {{normal_d=[[floor((@{skill_score_6}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_6}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_6' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_7" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_7" /></td>
<td><input type="number" name="attr_skill_score_7"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_7} roll}} {{rating_d=[[floor(@{skill_score_7}/10)]]}} {{rating_u=[[@{skill_score_7}%10]]}} {{normal_d=[[floor((@{skill_score_7}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_7}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_7' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_8" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_8" /></td>
<td><input type="number" name="attr_skill_score_8"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_8} roll}} {{rating_d=[[floor(@{skill_score_8}/10)]]}} {{rating_u=[[@{skill_score_8}%10]]}} {{normal_d=[[floor((@{skill_score_8}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_8}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_8' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_9" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_9" /></td>
<td><input type="number" name="attr_skill_score_9"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_9} roll}} {{rating_d=[[floor(@{skill_score_9}/10)]]}} {{rating_u=[[@{skill_score_9}%10]]}} {{normal_d=[[floor((@{skill_score_9}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_9}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_9' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_10" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_10" /></td>
<td><input type="number" name="attr_skill_score_10"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_10} roll}} {{rating_d=[[floor(@{skill_score_10}/10)]]}} {{rating_u=[[@{skill_score_10}%10]]}} {{normal_d=[[floor((@{skill_score_10}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_10}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_10' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_11" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_11" /></td>
<td><input type="number" name="attr_skill_score_11"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_11} roll}} {{rating_d=[[floor(@{skill_score_11}/10)]]}} {{rating_u=[[@{skill_score_11}%10]]}} {{normal_d=[[floor((@{skill_score_11}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_11}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_11' /></tr></tr>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_criminology" /> Criminology (10%)</td>
<td><input type="number" name="attr_criminology" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Criminology roll}} {{rating_d=[[floor(@{criminology}/10)]]}} {{rating_u=[[@{criminology}%10]]}} {{normal_d=[[floor((@{criminology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{criminology}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_criminology_check' /></td>
<td ><input type="checkbox" name="attr_chk_occult" /> Occult (10%)</td>
<td><input type="number" name="attr_occult" value="10"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;"><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Occult roll}} {{rating_d=[[floor(@{occult}/10)]]}} {{rating_u=[[@{occult}%10]]}} {{normal_d=[[floor((@{occult}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{occult}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_occult_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_demolitions" /> Demolitions (0%)</td>
<td><input type="number" name="attr_demolitions" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Demolitions roll}} {{rating_d=[[floor(@{demolitions}/10)]]}} {{rating_u=[[@{demolitions}%10]]}} {{normal_d=[[floor((@{demolitions}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{demolitions}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_demolitions_check' /></td>
<td ><input type="checkbox" name="attr_chk_persuade" /> Persuade (20%)</td>
<td><input type="number" name="attr_persuade" value="20"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Persuade roll}} {{rating_d=[[floor(@{persuade}/10)]]}} {{rating_u=[[@{persuade}%10]]}} {{normal_d=[[floor((@{persuade}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{persuade}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_persuade_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_disguise" /> Disguise (10%)</td>
<td><input type="number" name="attr_disguise" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Disguise roll}} {{rating_d=[[floor(@{disguise}/10)]]}} {{rating_u=[[@{disguise}%10]]}} {{normal_d=[[floor((@{disguise}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{disguise}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_disguise_check' /></td>
<td ><input type="checkbox" name="attr_chk_pharmacy" /> Pharmacy (0%)</td>
<td><input type="number" name="attr_pharmacy" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Pharmacy roll}} {{rating_d=[[floor(@{pharmacy}/10)]]}} {{rating_u=[[@{pharmacy}%10]]}} {{normal_d=[[floor((@{pharmacy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pharmacy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pharmacy_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_dodge" /> Dodge (30%)</td>
<td><input type="number" name="attr_dodge" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Dodge roll}} {{rating_d=[[floor(@{dodge}/10)]]}} {{rating_u=[[@{dodge}%10]]}} {{normal_d=[[floor((@{dodge}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{dodge}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_dodge_check' /></td>
<td ><input type="checkbox" name="attr_chk_pilot1" /> Pilot: <input type="text" style="width:80px; text-align:left;" name="attr_pilot1_name" value="Type"> </td> </td>
<td><input type="number" name="attr_pilot1" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{pilot1_name} roll}} {{rating_d=[[floor(@{pilot1}/10)]]}} {{rating_u=[[@{pilot1}%10]]}} {{normal_d=[[floor((@{pilot1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pilot1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pilot1_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_drive" /> Drive (20%)</td>
<td><input type="number" name="attr_drive" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Drive roll}} {{rating_d=[[floor(@{drive}/10)]]}} {{rating_u=[[@{drive}%10]]}} {{normal_d=[[floor((@{drive}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{drive}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_drive_check' /></td>
<td ><input type="checkbox" name="attr_chk_pilot2" /> Pilot: <input type="text" style="width:80px; text-align:left;" name="attr_pilot2_name" value="Type"> </td> </td>
<td><input type="number" name="attr_pilot2" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{pilot2_name} roll}} {{rating_d=[[floor(@{pilot2}/10)]]}} {{rating_u=[[@{pilot2}%10]]}} {{normal_d=[[floor((@{pilot2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pilot2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pilot2_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_firearms" /> Firearms (20%)</td>
<td><input type="number" name="attr_firearms" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Firearms roll}} {{rating_d=[[floor(@{firearms}/10)]]}} {{rating_u=[[@{firearms}%10]]}} {{normal_d=[[floor((@{firearms}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{firearms}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_firearms_check' /></td>
<td ><input type="checkbox" name="attr_chk_psychoterapy" /> Psychotherapy (10%)</td>
<td><input type="number" name="attr_psychoterapy" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Psychotherapy roll}} {{rating_d=[[floor(@{psychoterapy}/10)]]}} {{rating_u=[[@{psychoterapy}%10]]}} {{normal_d=[[floor((@{psychoterapy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{psychoterapy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_psychoterapy_check' /></td>
</tr>
</table>
</div>
</div>
<span class="spacer2"></span>
</div>
</div>
<!-- -->
</div>
</div>
<div class="player ">
<input type="checkbox" class="agentflip" name="attr_flipagent" value="on"/>
<div class=" flipper">
<!-- Set up the Tabs -->
<div class=" back ">
<div class="paper1 ">
<span class="spacer2"></span>
<div class="maindiv" style="height:60px;">
<label class='sectionHeader '>
<input type="radio" style=name="attr_flipagent" class="switch-page" value="off"/><img class="switch-page" src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/header.png?raw=true" style="height:60px;width:100%;margin-left:-12px;object-fit: cover;" style="align:center">
</label>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral" >
<!--<div class="verticaltext">EQUIPMENT</div>-->
<div class="verticaltext">INJURIES</div>
</div>
<div class="column cmain">
<table style="border:hidden">
<tr>
<td style='text-align: center;'>
WOUNDS AND AILMENTS
</td>
</tr>
<tr>
<td>
<textarea name="attr_wound" style="width:98.5%;height:50px;background-color: transparent;"></textarea>
</td>
</tr>
<tr>
<td style='text-align: center;'>
Has First Aid been attempted since the last injury? <input type="checkbox" name="first_aid_attempted_chk" value="1"/> yes; only Medicine, Surgery, or long-term rest can help further
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<input type="number" readonly style="display:none;" value="0" name="attr_str_mod"/>
<div class="maindiv">
<div class="column clateral" >
<!--<div class="verticaltext">EQUIPMENT</div>-->
<div class="verticaltext">EQUIPMENT</div>
</div>
<div class="column cmain">
<div>
<table style="border:hidden;" width="100%">
<tr>
<td colspan="3" style='text-align: center;'>
ARMOR AND GEAR
</td>
</tr>
<tr>
<td style='text-align: center; width:25%'>TYPE</td>
<td style='text-align: center; width:55%'>DESCRIPTION</td>
<td style='text-align: center; width:20%'>RATING</td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Worn Armor</td>
<td><input type="text" name="attr_bodyarmorname" style='text-align: left;'></td>
<td><input type="number" name="attr_bodyarmorrating" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Cover</td>
<td><input type="text" name="attr_covername" style='text-align: left;'></td>
<td><input type="number" name="attr_coverrating" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: left;'>&nbsp; Total</td>
<td>
<input type="text" name="attr_armorvalue" value="" class="nolight" style='text-align: center;' readonly/>
</td>
<td><input type="number" name="attr_armorrating" class="nolight" value="0" style='text-align: center;'></td>
</tr>
<tr>
<td style='text-align: center;' colspan="3">
OTHER GEAR
</td>
</tr>
<tr>
<td colspan="3">
<textarea name="attr_gears" style="width:98.5%;height:90px;background-color: transparent;"></textarea>
</td>
</tr>
</table>
<table style="border:hidden;" width="100%">
<tr style="border:none;">
<td>
<div class="difficultytab">
<table style="border-left:hidden;border-right:hidden">
<tr>
<td style='text-align: center;' heigh="30px" colspan="4">
COMBAT
</td>
</tr>
<tr >
<td colspan="4" class="center buttonfull" ><button class="button " type="action" name="act_resetattackmod">RESET</button></span></td>
</tr>
<tr style="border:none">
<td class="buttonfull"><label><input type="checkbox" name="attr_aimchk" value="1"/><span></span>AIM (+20%)</label></td>
<td class="buttonfull"><label><input type="checkbox" name="attr_calledshot1" value="1"/><span></span>CALLED SHOT (&#8722;20%)</label></td>
<td class="buttonfull"><label><input type="checkbox" name="attr_calledshot2" value="2"/><span></span>CALLED SHOT (&#8722;40%)</label></td>
<td class="buttonfull"><label><input type="checkbox" name="attr_attackmodchk" value="1"/><span></span>OTHER: <input type="number" name="attr_customattackmod" value="0"></label></td>
</tr>
<tr style="border:none;">
<td class="buttonfull"><label><input type="radio" name="attr_rangeshotchk" value="pointblank"/><span></span>Point-Blank (+20%)</label></td>
<td class="buttonfull"><label><input type="radio" name="attr_rangeshotchk" value="normal" checked/><span></span>Base Range</label></td>
<td class="buttonfull"><label><input type="radio" name="attr_rangeshotchk" value="2x"/><span></span>2&times; Base Range (&#8722;20%)</label></td>
<td class="buttonfull"><label><input type="radio" name="attr_rangeshotchk" value="5x"/><span></span>5&times; Base Range (&#8722;40%)</label></td>
</tr>
</table>
<input type="hidden" value="0" name="attr_calledshotchk"/>
<input type="hidden" value="3" name="attr_pointblankdistance" />
<input type="hidden" value="0" name="attr_totattackmod" readonly />
<input type="hidden" value="0" name="attr_totdistmod" readonly/>
</div>
</td>
</tr>
<tr style="border:none">
<td>
<!-- list of attack modifiers -->
<input type="hidden" value="0" name="attr_distflag" />
<input type="hidden" name="attr_weaponrealskill1" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill2" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill3" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill4" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill5" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill6" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill7" value="40" readonly/>
<input type="hidden" name="attr_weaponrealskill8" value="40" readonly/>
<input type="hidden" name="attr_thandmodif1" value="0"/> <input type="hidden" name="attr_tfiremodif1" value="0"/> <input type="hidden" name="attr_texplmodif1" value="0"/> <input type="hidden" name="attr_tshotmodif1" value="0"/>
<input type="hidden" name="attr_thandmodif2" value="0"/> <input type="hidden" name="attr_tfiremodif2" value="0"/> <input type="hidden" name="attr_texplmodif2" value="0"/> <input type="hidden" name="attr_tshotmodif2" value="0"/>
<input type="hidden" name="attr_thandmodif3" value="0"/> <input type="hidden" name="attr_tfiremodif3" value="0"/> <input type="hidden" name="attr_texplmodif3" value="0"/> <input type="hidden" name="attr_tshotmodif3" value="0"/>
<input type="hidden" name="attr_thandmodif4" value="0"/> <input type="hidden" name="attr_tfiremodif4" value="0"/> <input type="hidden" name="attr_texplmodif4" value="0"/> <input type="hidden" name="attr_tshotmodif4" value="0"/>
<input type="hidden" name="attr_thandmodif5" value="0"/> <input type="hidden" name="attr_tfiremodif5" value="0"/> <input type="hidden" name="attr_texplmodif5" value="0"/> <input type="hidden" name="attr_tshotmodif5" value="0"/>
<input type="hidden" name="attr_thandmodif6" value="0"/> <input type="hidden" name="attr_tfiremodif6" value="0"/> <input type="hidden" name="attr_texplmodif6" value="0"/> <input type="hidden" name="attr_tshotmodif6" value="0"/>
<input type="hidden" name="attr_thandmodif7" value="0"/> <input type="hidden" name="attr_tfiremodif7" value="0"/> <input type="hidden" name="attr_texplmodif7" value="0"/> <input type="hidden" name="attr_tshotmodif7" value="0"/>
<input type="hidden" name="attr_thandmodif8" value="0"/> <input type="hidden" name="attr_tfiremodif8" value="0"/> <input type="hidden" name="attr_texplmodif8" value="0"/> <input type="hidden" name="attr_tshotmodif8" value="0"/>
<table class="attacktable" style="border:hidden">
<tr style="border-top:none">
<td style='width:17%; text-align: center;' valign="bottom"> WEAPONS</td>
<td style='width:18%; text-align: center;' valign="bottom"> SKILL</td>
<td style='width:10%; text-align: center;' valign="bottom"> RANGE</td>
<td style='width:20%; text-align: center;' valign="bottom"> DAMAGE/LETHALITY</td>
<td style='width:05%; text-align: center;' valign="bottom"> ACC.</td>
<td style='width:09%; text-align: center;' valign="bottom"> KILL <br> RADIUS</td>
<td style='width:05%; text-align: center;' valign="bottom"> AP </td>
<td style='width:11%; text-align: center;' valign="bottom" > AMMO</td>
<td style='width:05%; text-align: center'><input readonly value="@{str_mod}" style="width:30px;text-align:left;" type="hidden"/> </td> </td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name1"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname1"/>
<select name="attr_skilltype1">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka1" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb1" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea1"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc1" />
<span class="switch-c">
<input type="number" name="attr_srangea1" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb1" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka1" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage1"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb1" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage1"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc1"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality1"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd1"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga1" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb1" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc1" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod1" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk1" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius1" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP1" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk1" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo1"/>/<input type="number" value="15" name="attr_maxammo1"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand1" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod1}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor(@{thandmodif1}/10)]]}} {{normal_u=[[@{thandmodif1}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}+@{str_mod}]]}} {{damagec=[[(@{damage1})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired1"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod1}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor(@{tfiremodif1}/10)]]}} {{normal_u=[[@{tfiremodif1}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damage=[[@{damage1}]]}} {{damagec=[[(@{damage1})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel1"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{kradius=[[@{radius1}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea1}]]}} {{base2=[[@{rangea1}*2]]}} {{base5=[[@{rangea1}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod1}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor(@{tfiremodif1}/10)]]}} {{normal_u=[[@{tfiremodif1}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{lethal_d=[[@{lethality1}/10]]}} {{lethal_u=[[@{lethality1}%10]]}} {{lethal_cd=[[(@{lethality1}/10)*2]]}} {{lethal_cu=[[(@{lethality1}%10)*2]]}} {{lethality=[[@{lethality1}]]}} {{huge_l=[[@{lethality1}]]}} {{huge_lc=[[@{lethality1}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot1"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name1}}} {{skillname=@{weapon_skillname1}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea1}]]}} {{base2=[[@{srangeb1}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod1}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill1}/10)]]}} {{rating_u=[[(@{weaponrealskill1}%10)]]}} {{normal_d=[[floor(@{tfiremodif1}/10)]]}} {{normal_u=[[@{tfiremodif1}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP1}]]}} {{damagea=[[@{shotgundmga1}]]}} {{damageb=[[@{shotgundmgb1}]]}} {{damagec=[[@{shotgundmgc1}]]}} {{damagea_c=[[@{shotgundmga1}*2]]}} {{damageb_c=[[@{shotgundmgb1}*2]]}} {{damagec_c=[[@{shotgundmgc1}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name2"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname2"/>
<select name="attr_skilltype2">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka2" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb2" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea2"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc2" />
<span class="switch-c">
<input type="number" name="attr_srangea2" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb2" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka2" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage2"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight"class="nolight"readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb2" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage2"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc2"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality2"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd2"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga2" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb2" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc2" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod2" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk2" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius2" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP2" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk2" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo2"/>/<input type="number" value="15" name="attr_maxammo2"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand2" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod2}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill2}/10)]]}} {{rating_u=[[(@{weaponrealskill2}%10)]]}} {{normal_d=[[floor(@{thandmodif2}/10)]]}} {{normal_u=[[@{thandmodif2}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP2}]]}} {{damage=[[@{damage2}+@{str_mod}]]}} {{damagec=[[(@{damage2})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired2"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea2}]]}} {{base2=[[@{rangea2}*2]]}} {{base5=[[@{rangea2}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod2}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill2}/10)]]}} {{rating_u=[[(@{weaponrealskill2}%10)]]}} {{normal_d=[[floor(@{tfiremodif2}/10)]]}} {{normal_u=[[@{tfiremodif2}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP2}]]}} {{damage=[[@{damage2}]]}} {{damagec=[[(@{damage2})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel2"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{kradius=[[@{radius2}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea2}]]}} {{base2=[[@{rangea2}*2]]}} {{base5=[[@{rangea2}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod2}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill2}/10)]]}} {{rating_u=[[(@{weaponrealskill2}%10)]]}} {{normal_d=[[floor(@{tfiremodif2}/10)]]}} {{normal_u=[[@{tfiremodif2}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP2}]]}} {{lethal_d=[[@{lethality2}/10]]}} {{lethal_u=[[@{lethality2}%10]]}} {{lethal_cd=[[(@{lethality2}/10)*2]]}} {{lethal_cu=[[(@{lethality2}%10)*2]]}} {{lethality=[[@{lethality2}]]}} {{huge_l=[[@{lethality2}]]}} {{huge_lc=[[@{lethality2}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot2"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name2}}} {{skillname=@{weapon_skillname2}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea2}]]}} {{base2=[[@{srangeb2}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod2}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill2}/10)]]}} {{rating_u=[[(@{weaponrealskill2}%10)]]}} {{normal_d=[[floor(@{tfiremodif2}/10)]]}} {{normal_u=[[@{tfiremodif2}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP2}]]}} {{damagea=[[@{shotgundmga2}]]}} {{damageb=[[@{shotgundmgb2}]]}} {{damagec=[[@{shotgundmgc2}]]}} {{damagea_c=[[@{shotgundmga2}*2]]}} {{damageb_c=[[@{shotgundmgb2}*2]]}} {{damagec_c=[[@{shotgundmgc2}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name3"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname3"/>
<select name="attr_skilltype3">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka3" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb3" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea3"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc3" />
<span class="switch-c">
<input type="number" name="attr_srangea3" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb3" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka3" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage3"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight" readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb3" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage3"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc3"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality3"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd3"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga3" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb3" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc3" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod3" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk3" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius3" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP3" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk3" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo3"/>/<input type="number" value="15" name="attr_maxammo3"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand3" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod3}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor(@{thandmodif3}/10)]]}} {{normal_u=[[@{thandmodif3}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damage=[[@{damage3}+@{str_mod}]]}} {{damagec=[[(@{damage3})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired3"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea3}]]}} {{base2=[[@{rangea3}*2]]}} {{base5=[[@{rangea3}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod3}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor(@{tfiremodif3}/10)]]}} {{normal_u=[[@{tfiremodif3}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damage=[[@{damage3}]]}} {{damagec=[[(@{damage3})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel3"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{kradius=[[@{radius3}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea3}]]}} {{base2=[[@{rangea3}*2]]}} {{base5=[[@{rangea3}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod3}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor(@{tfiremodif3}/10)]]}} {{normal_u=[[@{tfiremodif3}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{lethal_d=[[@{lethality3}/10]]}} {{lethal_u=[[@{lethality3}%10]]}} {{lethal_cd=[[(@{lethality3}/10)*2]]}} {{lethal_cu=[[(@{lethality3}%10)*2]]}} {{lethality=[[@{lethality3}]]}} {{huge_l=[[@{lethality3}]]}} {{huge_lc=[[@{lethality3}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot3"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name3}}} {{skillname=@{weapon_skillname3}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea3}]]}} {{base2=[[@{srangeb3}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod3}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill3}/10)]]}} {{rating_u=[[(@{weaponrealskill3}%10)]]}} {{normal_d=[[floor(@{tfiremodif3}/10)]]}} {{normal_u=[[@{tfiremodif3}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP3}]]}} {{damagea=[[@{shotgundmga3}]]}} {{damageb=[[@{shotgundmgb3}]]}} {{damagec=[[@{shotgundmgc3}]]}} {{damagea_c=[[@{shotgundmga3}*2]]}} {{damageb_c=[[@{shotgundmgb3}*2]]}} {{damagec_c=[[@{shotgundmgc3}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name4"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname4"/>
<select name="attr_skilltype4">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka4" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb4" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea4"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc4" />
<span class="switch-c">
<input type="number" name="attr_srangea4" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb4" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka4" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage4"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight" readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb4" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage4"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc4"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality4"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd4"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga4" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb4" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc4" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod4" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk4" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius4" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP4" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk4" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo4"/>/<input type="number" value="15" name="attr_maxammo4"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand4" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod4}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor(@{thandmodif4}/10)]]}} {{normal_u=[[@{thandmodif4}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damage=[[@{damage4}+@{str_mod}]]}} {{damagec=[[(@{damage4})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired4"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea4}]]}} {{base2=[[@{rangea4}*2]]}} {{base5=[[@{rangea4}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod4}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor(@{tfiremodif4}/10)]]}} {{normal_u=[[@{tfiremodif4}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damage=[[@{damage4}]]}} {{damagec=[[(@{damage4})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel4"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{kradius=[[@{radius4}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea4}]]}} {{base2=[[@{rangea4}*2]]}} {{base5=[[@{rangea4}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod4}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor(@{tfiremodif4}/10)]]}} {{normal_u=[[@{tfiremodif4}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{lethal_d=[[@{lethality4}/10]]}} {{lethal_u=[[@{lethality4}%10]]}} {{lethal_cd=[[(@{lethality4}/10)*2]]}} {{lethal_cu=[[(@{lethality4}%10)*2]]}} {{lethality=[[@{lethality4}]]}} {{huge_l=[[@{lethality4}]]}} {{huge_lc=[[@{lethality4}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot4"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name4}}} {{skillname=@{weapon_skillname4}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea4}]]}} {{base2=[[@{srangeb4}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod4}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill4}/10)]]}} {{rating_u=[[(@{weaponrealskill4}%10)]]}} {{normal_d=[[floor(@{tfiremodif4}/10)]]}} {{normal_u=[[@{tfiremodif4}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP4}]]}} {{damagea=[[@{shotgundmga4}]]}} {{damageb=[[@{shotgundmgb4}]]}} {{damagec=[[@{shotgundmgc4}]]}} {{damagea_c=[[@{shotgundmga4}*2]]}} {{damageb_c=[[@{shotgundmgb4}*2]]}} {{damagec_c=[[@{shotgundmgc4}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name5"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname5"/>
<select name="attr_skilltype5">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka5" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb5" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea5"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc5" />
<span class="switch-c">
<input type="number" name="attr_srangea5" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb5" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka5" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage5"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight" readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb5" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage5"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc5"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality5"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd5"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga5" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb5" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc5" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod5" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk5" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius5" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP5" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk5" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo5"/>/<input type="number" value="15" name="attr_maxammo5"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand5" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name5}}} {{skillname=@{weapon_skillname5}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod5}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill5}/10)]]}} {{rating_u=[[(@{weaponrealskill5}%10)]]}} {{normal_d=[[floor(@{thandmodif5}/10)]]}} {{normal_u=[[@{thandmodif5}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP5}]]}} {{damage=[[@{damage5}+@{str_mod}]]}} {{damagec=[[(@{damage5})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired5"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name5}}} {{skillname=@{weapon_skillname5}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea5}]]}} {{base2=[[@{rangea5}*2]]}} {{base5=[[@{rangea5}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod5}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill5}/10)]]}} {{rating_u=[[(@{weaponrealskill5}%10)]]}} {{normal_d=[[floor(@{tfiremodif5}/10)]]}} {{normal_u=[[@{tfiremodif5}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP5}]]}} {{damage=[[@{damage5}]]}} {{damagec=[[(@{damage5})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel5"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name5}}} {{skillname=@{weapon_skillname5}}} {{kradius=[[@{radius5}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea5}]]}} {{base2=[[@{rangea5}*2]]}} {{base5=[[@{rangea5}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod5}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill5}/10)]]}} {{rating_u=[[(@{weaponrealskill5}%10)]]}} {{normal_d=[[floor(@{tfiremodif5}/10)]]}} {{normal_u=[[@{tfiremodif5}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP5}]]}} {{lethal_d=[[@{lethality5}/10]]}} {{lethal_u=[[@{lethality5}%10]]}} {{lethal_cd=[[(@{lethality5}/10)*2]]}} {{lethal_cu=[[(@{lethality5}%10)*2]]}} {{lethality=[[@{lethality5}]]}} {{huge_l=[[@{lethality5}]]}} {{huge_lc=[[@{lethality5}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot5"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name5}}} {{skillname=@{weapon_skillname5}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea5}]]}} {{base2=[[@{srangeb5}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod5}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill5}/10)]]}} {{rating_u=[[(@{weaponrealskill5}%10)]]}} {{normal_d=[[floor(@{tfiremodif5}/10)]]}} {{normal_u=[[@{tfiremodif5}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP5}]]}} {{damagea=[[@{shotgundmga5}]]}} {{damageb=[[@{shotgundmgb5}]]}} {{damagec=[[@{shotgundmgc5}]]}} {{damagea_c=[[@{shotgundmga5}*2]]}} {{damageb_c=[[@{shotgundmgb5}*2]]}} {{damagec_c=[[@{shotgundmgc4}*2]]}}' />
</span>
</td>
</tr>
<tr>
<td><input type="text" value="Weapon" style="text-align:left" name="attr_weapon_name6"/></td>
<td style='text-align: center; position:relative; z-index:1;'>
<input type="text" style="display:none" value="test" name="attr_weapon_skillname6"/>
<select name="attr_skilltype6">
<option value="1" checked>Unarmed</option>
<option value="10">Artillery</option>
<option value="6">Athletics(Damage)</option>
<option value="7">Athletics(Lethality)</option>
<option value="8">Demolitions</option>
<option value="3">Firearms(Damage)</option>
<option value="4">Firearms(Lethality)</option>
<option value="5">Firearms(Shotgun)</option>
<option value="9">Heavy Weapons</option>
<option value="2">Melee Weapons</option>
</select>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_rangechka6" checked />
<span class="switch-a">
<!--no range for hand to hand and cars -->
</span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_rangechkb6" />
<span class="switch-b">
<!--normal range for weaponse -->
<input type="number" value="20" name="attr_rangea6"/>m
</span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_rangechkc6" />
<span class="switch-c">
<input type="number" name="attr_srangea6" style="width:2em;" value="20"/>m/<input type="number" name="attr_srangeb6" style="width:2em;" value="50"/>m
</span>
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-a" name="attr_dmgchka6" checked/>
<span class="switch-a"><input type="text" style="width:50px; text-align:right" value="1d6" name="attr_damage6"/> <input type="text" class="fixconst" style="width:30px;text-align:left" value="+0" name="attr_textstrmod" class="nolight" readonly/></span>
<input type="checkbox" style="display:none" value="1" class="block-b" name="attr_dmgchkb6" />
<span class="switch-b"><input type="text" style="width:60px;" value="1d6" name="attr_damage6"/></span>
<input type="checkbox" style="display:none" value="1" class="block-c" name="attr_dmgchkc6"/>
<span class="switch-c"><input type="number" value="10" name="attr_lethality6"/>%</span>
<input type="checkbox" style="display:none" value="1" class="block-d" name="attr_dmgchkd6"/>
<span class="switch-d"><input type="text" name="attr_shotgundmga6" style="width:4em;" value="2d10"/>/<input type="text" value="1d10" name="attr_shotgundmgb6" style="width:4em;"/>/<input type="text" value="1d6" name="attr_shotgundmgc6" style="width:4em;"/></span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_accmod6" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_radiuschk6" />
<span class="sheet-block-a"><input type="number" value="0" name="attr_radius6" />m</span>
<span class="sheet-block-b"> </span>
</td>
<td style='text-align: center;'>
<input type="number" value="0" name="attr_AP6" />
</td>
<td style='text-align: center;'>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ammochk6" />
<span class="sheet-block-a"><input type="number" value="15" name="attr_currentammo6"/>/<input type="number" value="15" name="attr_maxammo6"/></span>
<span class="sheet-block-b"> </span>
</td>
<td class="attr-roll" >
<!-- hand to hand roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button1" name="attr_rhand6" checked/>
<span class="attack-button1">
<button class='dg-roll blank-roll-button'
type='roll' value='&{template:dg-attackhand}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name6}}} {{skillname=@{weapon_skillname6}}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod6}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill6}/10)]]}} {{rating_u=[[(@{weaponrealskill6}%10)]]}} {{normal_d=[[floor(@{thandmodif6}/10)]]}} {{normal_u=[[@{thandmodif6}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP6}]]}} {{damage=[[@{damage6}+@{str_mod}]]}} {{damagec=[[(@{damage6})*2+(@{str_mod})*2]]}}' />
</span>
<!-- damage roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button2" name="attr_rfired6"/>
<span class="attack-button2">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackfire}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name6}}} {{skillname=@{weapon_skillname6}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea6}]]}} {{base2=[[@{rangea6}*2]]}} {{base5=[[@{rangea6}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod6}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill6}/10)]]}} {{rating_u=[[(@{weaponrealskill6}%10)]]}} {{normal_d=[[floor(@{tfiremodif6}/10)]]}} {{normal_u=[[@{tfiremodif6}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP6}]]}} {{damage=[[@{damage6}]]}} {{damagec=[[(@{damage6})*2]]}}' />
</span>
<!-- lethality roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button3" name="attr_rfirel6"/>
<span class="attack-button3">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attacklethal}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name6}}} {{skillname=@{weapon_skillname6}}} {{kradius=[[@{radius6}]]}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{rangea6}]]}} {{base2=[[@{rangea6}*2]]}} {{base5=[[@{rangea6}*5]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod6}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill6}/10)]]}} {{rating_u=[[(@{weaponrealskill6}%10)]]}} {{normal_d=[[floor(@{tfiremodif6}/10)]]}} {{normal_u=[[@{tfiremodif6}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP6}]]}} {{lethal_d=[[@{lethality6}/10]]}} {{lethal_u=[[@{lethality6}%10]]}} {{lethal_cd=[[(@{lethality6}/10)*2]]}} {{lethal_cu=[[(@{lethality6}%10)*2]]}} {{lethality=[[@{lethality6}]]}} {{huge_l=[[@{lethality6}]]}} {{huge_lc=[[@{lethality6}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
<!-- shotgun roll attack -->
<input type="checkbox" style="display:none" value="1" class="block-button4" name="attr_rshot6"/>
<span class="attack-button4">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-attackshotgun}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{weapon_name6}}} {{skillname=@{weapon_skillname6}}} {{dist=[[@{distflag}]]}} {{distmod=[[@{totdistmod}]]}} {{pointb=[[@{pointblankdistance}]]}} {{base=[[@{srangea6}]]}} {{base2=[[@{srangeb6}]]}} {{aim=[[@{aimchk}*20]]}} {{callshot=[[@{calledshotchk}*(-20)]]}} {{accmod=[[@{accmod6}]]}} {{custom=[[@{customattackmod}]]}} {{rating_d=[[floor(@{weaponrealskill6}/10)]]}} {{rating_u=[[(@{weaponrealskill6}%10)]]}} {{normal_d=[[floor(@{tfiremodif6}/10)]]}} {{normal_u=[[@{tfiremodif6}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{AP=[[@{AP6}]]}} {{damagea=[[@{shotgundmga6}]]}} {{damageb=[[@{shotgundmgb6}]]}} {{damagec=[[@{shotgundmgc6}]]}} {{damagea_c=[[@{shotgundmga6}*2]]}} {{damageb_c=[[@{shotgundmgb6}*2]]}} {{damagec_c=[[@{shotgundmgc4}*2]]}}' />
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral" >
<div class="verticaltext2">HYPERGEOMETRY</div>
</div>
<div class="column cmain">
<table class="attacktable" style="border:hidden">
<tr style="border-top:none">
<td style='width:17%; text-align: center;'> RITUAL</td>
<td style='width:14%; text-align: center;'> ACTIVATION TIME</td>
<td style='width:07%; text-align: center;'> WP </td>
<td style='width:07%; text-align: center;'> HP </td>
<td style='width:07%; text-align: center;'> POW </td>
<td style='width:07%; text-align: center;'> SAN </td>
<td style='width:07%; text-align: center;'> MOD </td>
<td style='width:12%; text-align: center;'> DAMAGE</td>
<td style='text-align: center;'> DESCRIPTION</td>
<td style='width:05%; text-align: center'><!-- <input readonly value="49" name="attr_ritualactivation" style="width:30px;text-align:left;" type="number"/> </td> --> </td>
</tr>
<tr style="border-top:none">
<td style='text-align: left;'> <input type="text" name="attr_ritualname1" value="Ritual" style="text-align:left" /></td>
<td style='text-align: center;'>
<input type="text" style="width:4em" name="attr_ritualtime1" value="1"/>
<select name="attr_ritualunit1" style="width:4em">
<option value="turn" checked>turn</option>
<option value="minute">minute</option>
<option value="hr">hour</option>
<option value="day">day</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualwp1" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualhp1" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualpow1" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualsan1" value="0"/>
</td>
<td style='text-align: center;'>
<input type="number" style="width:3em" name="attr_ritualmod1" value="0"/>%
</td>
<td style='text-align: center;'>
<select name="attr_ritualdmgtype1" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualdmgchk1" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_ritualdmg1" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_rituallethal1" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<textarea name="attr_ritualtext1" style="width:100%; height:2em;background-color: transparent;"></textarea>
</td>
<td>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualrollchk1" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-ritualdmg}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname1}}} {{time=[[@{ritualtime1}]]}} {{unit=@{ritualunit1}}} {{wp=[[@{ritualwp1}]]}} {{hp=[[@{ritualhp1}]]}} {{pow=[[@{ritualpow1}]]}} {{mod=[[@{ritualmod1}]]}} {{san=[[@{ritualsan1}]]}} {{text=@{ritualtext1}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod1})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod1})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{damage=[[@{ritualdmg1}]]}} {{damagec=[[@{ritualdmg1}*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-rituallethality}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname1}}} {{time=[[@{ritualtime1}]]}} {{unit=@{ritualunit1}}} {{wp=[[@{ritualwp1}]]}} {{hp=[[@{ritualhp1}]]}}{{wp=[[@{ritualwp1}]]}} {{hp=[[@{ritualhp1}]]}} {{pow=[[@{ritualpow1}]]}} {{mod=[[@{ritualmod1}]]}} {{san=[[@{ritualsan1}]]}} {{text=@{ritualtext1}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod1})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod1})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{lethal_d=[[@{rituallethal1}/10]]}} {{lethal_u=[[@{rituallethal1}%10]]}} {{lethal_cd=[[(@{rituallethal1}/10)*2]]}} {{lethal_cu=[[(@{rituallethal1}%10)*2]]}} {{lethality=[[@{rituallethal1}]]}} {{huge_l=[[@{rituallethal1}]]}} {{huge_lc=[[@{rituallethal1}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr style="border-top:none">
<td style='text-align: left;'> <input type="text" name="attr_ritualname2" value="Ritual" style="text-align:left"/></td>
<td style='text-align: center;'>
<input type="text" style="width:4em" name="attr_ritualtime2" value="1"/>
<select name="attr_ritualunit2" style="width:4em">
<option value="turn" checked>turn</option>
<option value="minute">minute</option>
<option value="hr">hour</option>
<option value="day">day</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualwp2" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualhp2" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualpow2" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualsan2" value="0"/>
</td>
<td style='text-align: center;'>
<input type="number"style="width:3em" name="attr_ritualmod2" value="0"/>%
</td>
<td style='text-align: center;'>
<select name="attr_ritualdmgtype2" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualdmgchk2" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_ritualdmg2" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_rituallethal2" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<textarea name="attr_ritualtext2" style="width:100%; height:2em;background-color: transparent;"></textarea>
</td>
<td>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualrollchk2" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-ritualdmg}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname2}}} {{time=[[@{ritualtime2}]]}} {{unit=@{ritualunit2}}} {{wp=[[@{ritualwp2}]]}} {{hp=[[@{ritualhp2}]]}} {{pow=[[@{ritualpow2}]]}} {{mod=[[@{ritualmod2}]]}} {{san=[[@{ritualsan2}]]}} {{text=@{ritualtext2}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod2})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod2})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{damage=[[@{ritualdmg2}]]}} {{damagec=[[@{ritualdmg2}*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-rituallethality}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname2}}} {{time=[[@{ritualtime2}]]}} {{unit=@{ritualunit2}}} {{wp=[[@{ritualwp2}]]}} {{hp=[[@{ritualhp1}]]}} {{pow=[[@{ritualpow2}]]}} {{mod=[[@{ritualmod2}]]}} {{san=[[@{ritualsan2}]]}} {{text=@{ritualtext2}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod2})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod2})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{lethal_d=[[@{rituallethal2}/10]]}} {{lethal_u=[[@{rituallethal2}%10]]}} {{lethal_cd=[[(@{rituallethal2}/10)*2]]}} {{lethal_cu=[[(@{rituallethal2}%10)*2]]}} {{lethality=[[@{rituallethal2}]]}} {{huge_l=[[@{rituallethal2}]]}} {{huge_lc=[[@{rituallethal2}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr style="border-top:none">
<td style='text-align: left;'> <input type="text" name="attr_ritualname3" value="Ritual" style="text-align:left"/></td>
<td style='text-align: center;'>
<input type="text" style="width:4em" name="attr_ritualtime3" value="1"/>
<select name="attr_ritualunit3" style="width:4em">
<option value="turn" checked>turn</option>
<option value="minute">minute</option>
<option value="hr">hour</option>
<option value="day">day</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualwp3" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualhp3" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualpow3" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualsan3" value="0"/>
</td>
<td style='text-align: center;'>
<input type="number"style="width:3em" name="attr_ritualmod3" value="0"/>%
</td>
<td style='text-align: center;'>
<select name="attr_ritualdmgtype3" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualdmgchk3" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_ritualdmg3" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_rituallethal3" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<textarea name="attr_ritualtext3" style="width:100%; height:2em;background-color: transparent;"></textarea>
</td>
<td>
<input type="checkbox" value="1" class="block-switch" style="display:none" name="attr_ritualrollchk3" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-ritualdmg}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname3}}} {{time=[[@{ritualtime3}]]}} {{unit=@{ritualunit3}}} {{wp=[[@{ritualwp3}]]}} {{hp=[[@{ritualhp3}]]}} {{pow=[[@{ritualpow3}]]}} {{mod=[[@{ritualmod3}]]}} {{san=[[@{ritualsan3}]]}} {{text=@{ritualtext3}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod3})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod3})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}}{{roll2=[[1d10-1]]}} {{damage=[[@{ritualdmg3}]]}} {{damagec=[[@{ritualdmg3}*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-rituallethality}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname3}}} {{time=[[@{ritualtime3}]]}} {{unit=@{ritualunit3}}} {{wp=[[@{ritualwp3}]]}} {{hp=[[@{ritualhp3}]]}} {{pow=[[@{ritualpow3}]]}} {{mod=[[@{ritualmod3}]]}} {{san=[[@{ritualsan3}]]}} {{text=@{ritualtext3}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod3})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod3})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{lethal_d=[[@{rituallethal3}/10]]}} {{lethal_u=[[@{rituallethal3}%10]]}} {{lethal_cd=[[(@{rituallethal3}/10)*2]]}} {{lethal_cu=[[(@{rituallethal3}%10)*2]]}} {{lethality=[[@{rituallethal3}]]}} {{huge_l=[[@{rituallethal3}]]}} {{huge_lc=[[@{rituallethal3}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr style="border-top:none">
<td style='text-align: left;'> <input type="text" name="attr_ritualname4" value="Ritual" style="text-align:left"/></td>
<td style='text-align: center;'>
<input type="text" style="width:4em" name="attr_ritualtime4" value="1"/>
<select name="attr_ritualunit4" style="width:4em">
<option value="turn" checked>turn</option>
<option value="minute">minute</option>
<option value="hr">hour</option>
<option value="day">day</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualwp4" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualhp4" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualpow4" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualsan4" value="0"/>
</td>
<td style='text-align: center;'>
<input type="number"style="width:3em" name="attr_ritualmod4" value="0"/>%
</td>
<td style='text-align: center;'>
<select name="attr_ritualdmgtype4" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualdmgchk4" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_ritualdmg4" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em;" name="attr_rituallethal4" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<textarea name="attr_ritualtext4" style="width:100%; height:2em;background-color: transparent;"></textarea>
</td>
<td>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualrollchk4" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-ritualdmg}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname4}}} {{time=[[@{ritualtime4}]]}} {{unit=@{ritualunit4}}} {{wp=[[@{ritualwp4}]]}} {{hp=[[@{ritualhp4}]]}} {{pow=[[@{ritualpow4}]]}} {{mod=[[@{ritualmod4}]]}} {{san=[[@{ritualsan4}]]}} {{text=@{ritualtext4}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod4})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod4})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{damage=[[@{ritualdmg4}]]}} {{damagec=[[@{ritualdmg4}*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-rituallethality}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname4}}} {{time=[[@{ritualtime4}]]}} {{unit=@{ritualunit4}}} {{wp=[[@{ritualwp4}]]}} {{hp=[[@{ritualhp4}]]}} {{pow=[[@{ritualpow4}]]}} {{mod=[[@{ritualmod4}]]}} {{san=[[@{ritualsan4}]]}} {{text=@{ritualtext4}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod4})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod4})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{lethal_d=[[@{rituallethal4}/10]]}} {{lethal_u=[[@{rituallethal4}%10]]}} {{lethal_cd=[[(@{rituallethal4}/10)*2]]}} {{lethal_cu=[[(@{rituallethal4}%10)*2]]}} {{lethality=[[@{rituallethal4}]]}} {{huge_l=[[@{rituallethal4}]]}} {{huge_lc=[[@{rituallethal4}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
<tr style="border-top:none">
<td style='text-align: left;'> <input type="text" name="attr_ritualname5" value="Ritual" style="text-align:left"/></td>
<td style='text-align: center;'>
<input type="text" style="width:4em" name="attr_ritualtime5" value="1"/>
<select name="attr_ritualunit5" style="width:4em">
<option value="turn" checked>turn</option>
<option value="minute">minute</option>
<option value="hr">hour</option>
<option value="day">day</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualwp5" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualhp5" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualpow5" value="0"/>
</td>
<td style='text-align: center;'>
<input type="text" width="3em" name="attr_ritualsan5" value="0"/>
</td>
<td style='text-align: center;'>
<input type="number"style="width:3em" name="attr_ritualmod5" value="0"/>%
</td>
<td style='text-align: center;'>
<select name="attr_ritualdmgtype5" style="width:2em">
<option value="1" checked>D</option>
<option value="2">L</option>
</select>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualdmgchk5" checked/>
<span class="sheet-block-a">
<input type="text" style="width:4em" name="attr_ritualdmg5" value="1d4"/>
</span>
<span class="sheet-block-b">
<input type="number" style="width:3em" name="attr_rituallethal5" value="10"/>%
</span>
</td>
<td style='text-align: center;'>
<textarea name="attr_ritualtext5" style="width:100%; height:2em;background-color: transparent;"></textarea>
</td>
<td>
<input type="checkbox" style="display:none" value="1" class="block-switch" name="attr_ritualrollchk5" checked/>
<span class="sheet-block-a">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-ritualdmg}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname5}}} {{time=[[@{ritualtime5}]]}} {{unit=@{ritualunit5}}} {{wp=[[@{ritualwp5}]]}} {{hp=[[@{ritualhp5}]]}} {{pow=[[@{ritualpow5}]]}} {{mod=[[@{ritualmod5}]]}} {{san=[[@{ritualsan5}]]}} {{text=@{ritualtext5}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod5})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod5})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{damage=[[@{ritualdmg5}]]}} {{damagec=[[@{ritualdmg5}*2]]}}' />
</span>
<span class="sheet-block-b">
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-rituallethality}{{lowwp=[[@{lowwill_chk}]]}} {{name=@{ritualname5}}} {{time=[[@{ritualtime5}]]}} {{unit=@{ritualunit5}}} {{wp=[[@{ritualwp5}]]}} {{hp=[[@{ritualhp5}]]}} {{pow=[[@{ritualpow5}]]}} {{mod=[[@{ritualmod5}]]}} {{san=[[@{ritualsan5}]]}} {{text=@{ritualtext5}}} {{normal_d=[[floor((@{ritualactivation}+@{ritualmod5})/10)]]}} {{normal_u=[[(@{ritualactivation}+@{ritualmod5})%10]]}} {{rating_d=[[floor(@{ritualactivation}/10)]]}} {{rating_u=[[@{ritualactivation}%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{lethal_d=[[@{rituallethal5}/10]]}} {{lethal_u=[[@{rituallethal5}%10]]}} {{lethal_cd=[[(@{rituallethal5}/10)*2]]}} {{lethal_cu=[[(@{rituallethal5}%10)*2]]}} {{lethality=[[@{rituallethal5}]]}} {{huge_l=[[@{rituallethal5}]]}} {{huge_lc=[[@{rituallethal5}*2]]}} {{roll_l1=[[1d10-1]]}} {{roll_l2=[[1d10-1]]}}' />
</span>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<span class="spacer2"></span>
<div class="maindiv" style="height:40px;">
<label class='sectionHeader '>
<input type="radio" name="attr_flipagent" class="switch-page" value="off"/><img class="switch-page" src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/footer2.png?raw=true" style="height:40px;width:100%;margin-left:-12px;object-fit: cover;" style="align:left">
</label>
</div>
<span class="spacer2"></span>
</div>
</div>
<div class="front ">
<div class="paper1 ">
<span class="spacer2"></span>
<div class="maindiv" style="height:60px;">
<label class='sectionHeader '>
<input type="radio" name="attr_flipagent" class="switch-page" value="on"/><img class="switch-page" src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/header.png?raw=true" style="height:60px;width:100%;margin-left:-12px;object-fit: cover;" style="align:left">
</label>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral1" >
<div class="verticaltext1">PERSONAL&nbsp;DATA</div>
</div>
<div class="column cmain">
<table style="border:hidden;" width="100%">
<tr>
<td colspan="2" ><p>LAST NAME, FIRST NAME (CODE NAME)</p><p><input type="text" name="attr_name" value=""></p> </td>
<!--<td colspan="2" ><p><span data-i18n="titlename-u">LAST NAME, FIRST NAME (CODE NAME)</span></p><p><input type="text" name="attr_name" value=""></p> </td>-->
<td colspan="2" ><p>PROFESSION (RANK)</p><p><input type="text" name="attr_profession" value=""></p> </td>
<!--<td colspan="2" ><p><span data-i18n="titleprofession-u">PROFESSION (RANK)</span></p><p><input type="text" name="attr_name" value=""></p> </td>-->
</tr>
<tr>
<td colspan="2"><p>EMPLOYER</p><p><input type="text" name="attr_employer" value=""></p> </td>
<td colspan="2"><p>NATIONALITY</p><p><input type="text" name="attr_nationality" value=""></p> </td>
<!--<td colspan="2"><p><span data-i18n="titleemployee-u">EMPLOYEE</span></p><p><input type="text" name="attr_name" value=""></p> </td>
<td colspan="2"><p><span data-i18n="titlenationality-u">NATIONALITY</span></p><p><input type="text" name="attr_name" value=""></p> </td>-->
</tr>
<tr>
<td ><p>GENDER</p><p><input type="text" name="attr_gender" value=""></p> </td>
<td ><p>AGE AND D.O.B.</p><p><input type="text" name="attr_age" value=""></p> </td>
<td colspan="2"><p>EDUCATION</p><p><input type="text" name="attr_education" value=""></p></td>
<!--<td ><p><span data-i18n="titlegender-u">GENDER</span></p><p><input type="text" name="attr_name" value=""></p> </td>
<td ><p><span data-i18n="titleage-u">AGE AND D.O.B</span></p><p><input type="text" name="attr_name" value=""></p> </td>
<td colspan="2"><p><span data-i18n="education-u">EDUCATION</span></p><p><input type="text" name="attr_name" value=""></p></td>-->
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv" height="30%" >
<div class="column clateral">
<div class="verticaltext">STATISTICAL DATA</div>
</div>
<div class="column left" >
<table class="generaltable" height="100%" >
<tr>
<td class="headertable" width="30%">STATISTICS</td>
<td class="headertable" width="15%">SCORE</td>
<td class="headertable" width="15%"> &times;5 </td>
<td class="headertable"> Features </td>
<td width="10%"></td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Strength
</td>
<td><input type="number" name="attr_str" value="10" ></td>
<td><input type="number" name="attr_strx5" value="50"></td>
<td><input type="text" style="text-align:left" name="attr_str_features" ></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=STR roll}} {{score=[[@{str}]]}} {{score_d=[[floor(@{str}/10)]]}} {{score_u=[[@{str}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{strx5}/10)]]}} {{rating_u=[[@{strx5}%10]]}} {{normal_d=[[floor((@{strx5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{strx5}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_str_check'/></td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Constitution
</td>
<td><input type="number" name="attr_con" value="10"></td>
<td><input type="number" name="attr_conx5" value="50" ></td>
<td><input type="text" style="text-align:left" name="attr_con_features" ></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=CON roll}} {{score=[[@{con}]]}} {{score_d=[[floor(@{con}/10)]]}} {{score_u=[[@{con}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{conx5}/10)]]}} {{rating_u=[[@{conx5}%10]]}} {{normal_d=[[floor((@{conx5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{conx5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_con_check' /></td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Dexterity
</td>
<td>
<input type="number" name="attr_dex" value="10"/>
</td>
<td>
<input type="number" name="attr_dexx5" value="50" />
</td>
<td><input type="text" style="text-align:left" name="attr_dex_features"/></td>
<td class="attr-roll" >
<button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=DEX roll}} {{score=[[@{dex}]]}} {{score_d=[[floor(@{dex}/10)]]}} {{score_u=[[@{dex}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{dexx5}/10)]]}} {{rating_u=[[@{dexx5}%10]]}} {{normal_d=[[floor((@{dexx5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{dexx5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_dex_check'/>
</td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Intelligence
</td>
<td><input type="number" name="attr_int" value="10"></td>
<td><input type="number" name="attr_intx5" value="50" ></td>
<td><input type="text" style="text-align:left" name="attr_int_features" ></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=INT roll}} {{score=[[@{int}]]}} {{score_d=[[floor(@{int}/10)]]}} {{score_u=[[@{int}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{intx5}/10)]]}} {{rating_u=[[@{intx5}%10]]}} {{normal_d=[[floor((@{intx5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{intx5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_int_check'/></td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Power
</td>
<td><input type="number" name="attr_pow" placeholder="-" value=""></td>
<td><input type="number" name="attr_powx5" placeholder="-" value=""></td>
<td><input type="text" style="text-align:left" name="attr_pow_features"></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' style="align:center" type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=POW roll}} {{score=[[@{pow}]]}} {{score_d=[[floor(@{pow}/10)]]}} {{score_u=[[@{pow}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{powx5}/10)]]}} {{rating_u=[[@{powx5}%10]]}} {{normal_d=[[floor((@{powx5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{powx5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_pow_check'/></td>
</tr>
<tr>
<td style="text-align:left">
&nbsp; Charisma
</td>
<td><input type="number" name="attr_cha" value="10"/></td>
<td><input type="number" name="attr_chax5" value="50" /></td>
<td><input type="text" style="text-align:left" name="attr_cha_features" /></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg-stat}{{lowwp=[[@{lowwill_chk}]]}} {{name=CHA roll}} {{score=[[@{cha}]]}} {{score_d=[[floor(@{cha}/10)]]}} {{score_u=[[@{cha}%10]]}} {{mod=[[@{modskillchk_tot}]]}} {{rating_d=[[floor(@{chax5}/10)]]}} {{rating_u=[[@{chax5}%10]]}} {{normal_d=[[floor((@{chax5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{chax5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_cha_check' /></td>
</tr>
<tr>
<td width="50%" class="headertable" colspan="2">DERIVED </td>
<td class="headertable"> MAX </td>
<td class="headertable"> CURRENT </td>
<td></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" colspan="2"> &nbsp; Hit Points (HP)</td>
<td><input type="number" name="attr_hp_max" value="10"></td>
<td><input type="number" name="attr_hp" value="10"></td>
<td></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" colspan="2"> &nbsp; Willpower Points (WP)</td>
<td><input type="number" name="attr_wp_max" value="10"></td>
<td><input type="number" name="attr_wp" value="10"></td>
<td></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" colspan="2"> &nbsp;
Sanity (SAN)
</td>
<td><input type="number" name="attr_san_max" value="99"></td>
<td><input type="number" name="attr_san" placeholder="-" value=""></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll'value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}}{{lowwp=[[@{lowwill_chk}]]}} {{name=SAN roll}} {{rating_d=[[floor(@{san}/10)]]}} {{rating_u=[[@{san}%10]]}} {{normal_d=[[floor((@{san}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{san}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} ' name='roll_san_check' /></td>
</tr>
<tr>
<td class="headertable" style="text-align: left;margin-left: 1em;" colspan="2"> &nbsp; Breaking Point (BP)</td>
<td><input type="number" name="attr_bp_max" placeholder="-" value=""></td>
<td><input type="number" name="attr_bp" placeholder="-" value=""></td>
<td></td>
</tr>
</table>
</div>
<div class="colspace"> </div>
<div class="column clateral">
<div class="verticaltext2">PSYCHOLOGICAL DATA</div>
</div>
<div class="column right" >
<table class="generaltable" height="100%">
<tr >
<td style="width: 50%;" class="headertable">BONDS</td>
<td style="width: 20%" class="headertable">SCORE</td>
<td style="width: 20%" class="headertable">PROJ</td>
<td style="width: 10%"></td>
</tr>
<tr style="border:none">
<td colspan="4" style="border:none">
<div class="fixedarea" style="border-style:none">
<table class="sheet-internal" width="100%">
<tr style="border-right-style:none;">
<td style="width: 55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_1" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_1" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_1" value="10"/></td>
<td style="width: 11.11%" class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_1}} {{roll=[[1d4]]}} {{name=Projection on @{bond_1}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_1}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_2" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_2" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_2" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_2}} {{roll=[[1d4]]}} {{name=Projection on @{bond_2}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_2}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_3" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_3" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_3" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_3}} {{roll=[[1d4]]}} {{name=Projection on @{bond_3}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_3}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" style="width: 100%; text-align: left" name="attr_bond_4" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_4" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_4" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_4}} {{roll=[[1d4]]}} {{name=Projection on @{bond_4}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_4}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_5" value="Name" /></td>
<td style="width: 25%"><input type="number" style="width:100%" name="attr_bond_score_5" value="10"/></td>
<td style="width: 25%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_5" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_5}} {{roll=[[1d4]]}} {{name=Projection on @{bond_5}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_5}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_6" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_6" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_6" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_6}} {{roll=[[1d4]]}} {{name=Projection on @{bond_6}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_6}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_7" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_7" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_7" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_7}} {{roll=[[1d4]]}} {{name=Projection on @{bond_7}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_7}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 50%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_8" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_8" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_8" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_8}} {{roll=[[1d4]]}} {{name=Projection on @{bond_8}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_8}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_9" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_9" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_9" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class= 'dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_9}} {{roll=[[1d4]]}} {{name=Projection on @{bond_9}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_9}]]}} ' name='roll_bond_check' /></td>
</tr>
<tr>
<td style="width: 55.55%"><input type="text" style="width: 100%; text-align: left" name="attr_bond_10" value="Name" /></td>
<td style="width: 22.22%"><input type="number" style="width:100%" name="attr_bond_score_10" value="10"/></td>
<td style="width: 22.22%"><input class="input-projection" style="width:100%" type="number" name="attr_bond_projection_10" value="10"/></td>
<td class="attr-roll" style="border-right-style:none;"><button class='dg-roll bond-roll blank-roll-button' type='roll' value='&{template:bond} {{characterid=@{character_id}}} {{attribute=bond_projection_10}} {{roll=[[1d4]]}} {{name=Projection on @{bond_10}}} {{maxwp=[[@{wp}]]}} {{max_score=[[@{bond_score_10}]]}} ' name='roll_bond_check' /></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="width: 30%;border: 1px solid black;" colspan="4" class="headertable">MOTIVATIONS/DISORDERS</td>
</tr>
<tr>
<td style="border: 1px solid black;" colspan="4">
<select name="attr_motivations_and_disorders_type1" style="width: 30%">
<option value="1">Motivation</option>
<option value="2">Disorder</option>
</select>
<input type="text" style="width: 70%;text-align: left" name="attr_motivations_and_disorders1"/>
</td>
</tr>
<tr>
<td style="border: 1px solid black;" colspan="4">
<select name="attr_motivations_and_disorders_type2" style="width: 30%">
<option value="1">Motivation</option>
<option value="2">Disorder</option>
</select>
<input type="text" style="width: 70%;text-align: left" name="attr_motivations_and_disorders2"/>
</td>
</tr>
<tr>
<td style="border: 1px solid black;" colspan="4">
<select name="attr_motivations_and_disorders_type3" style="width: 30%">
<option value="1">Motivation</option>
<option value="2">Disorder</option>
</select>
<input type="text" style="width: 70%;text-align: left" name="attr_motivations_and_disorders3"/>
</td>
</tr>
<tr>
<td style="border: 1px solid black;" colspan="4">
<select name="attr_motivations_and_disorders_type4" style="width: 30%">
<option value="1">Motivation</option>
<option value="2">Disorder</option>
</select>
<input type="text" style="width: 70%;text-align: left" name="attr_motivations_and_disorders4"/>
</td style="border: 1px solid black;">
</tr>
<tr>
<td style="border: 1px solid black;" colspan="4">
<select name="attr_motivations_and_disorders_type5" style="width: 30%">
<option value="1">Motivation</option>
<option value="2">Disorder</option>
</select>
<input type="text" style="width: 70%;text-align: left" name="attr_motivations_and_disorders5"/>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv" height="10%" >
<div class="column left adapt">
<table style="border:hidden;margin:0;padding:0" >
<tr style="margin:0;padding:0">
<th class="center" width="100%" height="30px"><span >DIFFICULTY [<input type="number" class="totalmod" name="attr_modskillchk_tot" value="0" readonly>]</span></th>
</tr>
<tr>
<td class="center buttonfull" ><button class="button " type="action" name="act_resetskillmod">RESET</button></span></td>
</tr>
<tr class="center" height="50px">
<td class="center" height="50px">
<table class="subadapt">
<tr>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk" value="trivial"/><span></span>+40</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk" value="easy"/><span></span>+20</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk" value="normal" checked="checked"/><span></span><input type="number" name="attr_customskillmod" value="0" height="20"></label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk" value="hard" /><span></span>&#8722;20</label></td>
<td height="30px" class=" buttonfull"><label><input type="radio" name="attr_modskillchk" value="impossible"/><span></span>&#8722;40</label></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="colspace"> </div>
<div class="column right adapt" >
<table width="100%" style="border:hidden;margin:0;padding:0" >
<tr style="margin:0;padding:0;background-color:black">
<th height="30px" width="100%" colspan="2" class="center" ><span >ADAPTATION TO INSANITY</span></th>
</tr>
<tr>
<td height="30px" class="center buttonfull" ><button class="button " type="action" name="act_resetviolence">VIOLENCE</button></span></td>
<td height="30px" class="center buttonfull" ><button class="button " type="action" name="act_resethelplessness">HELPLESSNESS</button></span></td>
</tr>
<tr>
<td class="center" height="50px">
<table class="subadapt">
<tr>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_violence_1" value="1"/><span></span></label></td>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_violence_2" value="10"/><span></span></label></td>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_violence_3" value="100"/><span></span></label></td>
</tr>
</table>
</td>
<td class="center">
<table class="subadapt">
<tr>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_helplessness_1" value="1"/><span></span></label></td>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_helplessness_2" value="10"/><span></span></label></td>
<td height="30px" class="buttonfull"><label><input type="checkbox" name="attr_check_helplessness_3" value="100"/><span></span></label></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<div class="maindiv">
<div class="column clateral" >
<div class="verticaltext">SKILL</div>
</div>
<div class="column cmain" height="100%" >
<table class="skilltable">
<tr>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_accounting"/> Accounting (10%)</td>
<td width="5%"><input type="number" name="attr_accounting" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Accounting roll}} {{rating_d=[[floor(@{accounting}/10)]]}} {{rating_u=[[@{accounting}%10]]}} {{normal_d=[[floor((@{accounting}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{accounting}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_accounting_check' /></td>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_first_aid"/> First Aid (10%)</td>
<td width="5%"><input type="number" name="attr_first_aid" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=First Aid roll}} {{rating_d=[[floor(@{first_aid}/10)]]}} {{rating_u=[[@{first_aid}%10]]}} {{normal_d=[[floor((@{first_aid}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{first_aid}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_first_aid_check' /></td>
<td width="25%" style="text-align:left;padding: 5px;position:relative"><input type="checkbox" name="attr_chk_ride"/> Ride (10%)</td>
<td width="5%"><input type="number" name="attr_ride" value="10"/> </td>
<td width="5%" class="attr-roll" style="text-align:center;align:center;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Ride roll}} {{rating_d=[[floor(@{ride}/10)]]}} {{rating_u=[[@{ride}%10]]}} {{normal_d=[[floor((@{ride}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{ride}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_ride_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_alertness" /> Alertness (20%)</td>
<td><input type="number" name="attr_alertness" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Alertness roll}} {{rating_d=[[floor(@{alertness}/10)]]}} {{rating_u=[[@{alertness}%10]]}} {{normal_d=[[floor((@{alertness}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{alertness}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_alertness_check' /></td>
<td><input type="checkbox" name="attr_chk_forensics"/> Forensics (0%)</td>
<td><input type="number" name="attr_forensics" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Forensics roll}} {{rating_d=[[floor(@{forensics}/10)]]}} {{rating_u=[[@{forensics}%10]]}} {{normal_d=[[floor((@{forensics}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{forensics}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_forensics_check' /></td>
<td><input type="checkbox" name="attr_chk_science1"/>Science: <input type="text" style="width:80px; text-align:left;" name="attr_science1_name" value="Type"> </td>
<td><input type="number" name="attr_science1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{science1_name} roll}} {{rating_d=[[floor(@{science1}/10)]]}} {{rating_u=[[@{science1}%10]]}} {{normal_d=[[floor((@{science1}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{science1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_science1_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_anthropology" /> Anthropology (0%)</td>
<td><input type="number" name="attr_anthropology" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Anthropology roll}} {{rating_d=[[floor(@{anthropology}/10)]]}} {{rating_u=[[@{anthropology}%10]]}} {{normal_d=[[floor((@{anthropology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{anthropology}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_anthropology_check' /></td>
<td><input type="checkbox" name="attr_chk_heavy_machinery"/> Heavy Machinery (10%)</td>
<td><input type="number" name="attr_heavy_machinery" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Heavy Machinery roll}} {{rating_d=[[floor(@{heavy_machinery}/10)]]}} {{rating_u=[[@{heavy_machinery}%10]]}} {{normal_d=[[floor((@{heavy_machinery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{heavy_machinery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_heavy_machinery_check' /></td>
<td><input type="checkbox" name="attr_chk_science2"/>Science: <input type="text" style="width:80px; text-align:left;" name="attr_science2_name" value="Type"> </td>
<td><input type="number" name="attr_science2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{science2_name} roll}} {{rating_d=[[floor(@{science2}/10)]]}} {{rating_u=[[@{science2}%10]]}} {{normal_d=[[floor((@{science2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{science2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_science2_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_archeology"/> Archeology (0%)</td>
<td><input type="number" name="attr_archeology" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Archeology roll}} {{rating_d=[[floor(@{archeology}/10)]]}} {{rating_u=[[@{archeology}%10]]}} {{normal_d=[[floor((@{archeology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{archeology}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_archeology_check' /></td>
<td><input type="checkbox" name="attr_chk_heavy_weapons"/> Heavy Weapons (0%)</td>
<td><input type="number" name="attr_heavy_weapons" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Heavy Weapons roll}} {{rating_d=[[floor(@{heavy_weapons}/10)]]}} {{rating_u=[[@{heavy_weapons}%10]]}} {{normal_d=[[floor((@{heavy_weapons}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{heavy_weapons}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_heavy_weapons_check' /></td>
<td><input type="checkbox" name="attr_chk_search"/> Search (20%)</td>
<td><input type="number" name="attr_search" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Search roll}} {{rating_d=[[floor(@{search}/10)]]}} {{rating_u=[[@{search}%10]]}} {{normal_d=[[floor((@{search}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{search}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_search_check' /></td>
</tr>
<tr>
<td><input type="checkbox" name="attr_chk_art1"/>Art: <input type="text" style="width:80px; text-align:left;" name="attr_art1_name" value="Type"> </td>
<td><input type="number" name="attr_art1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{art1_name} roll}} {{rating_d=[[floor(@{art1}/10)]]}} {{rating_u=[[@{art1}%10]]}} {{normal_d=[[floor((@{art1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{art1}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_art1_check' /></td>
<td ><input type="checkbox" name="attr_chk_history" /> History (10%)</td>
<td><input type="number" name="attr_history" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=History roll}} {{rating_d=[[floor(@{history}/10)]]}} {{rating_u=[[@{history}%10]]}} {{normal_d=[[floor((@{history}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{history}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_history_check' /></td>
<td><input type="checkbox" name="attr_chk_sigint"/> SIGINT (0%)</td>
<td><input type="number" name="attr_sigint" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=SIGINT roll}} {{rating_d=[[floor(@{sigint}/10)]]}} {{rating_u=[[@{sigint}%10]]}} {{normal_d=[[floor((@{sigint}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{sigint}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_sigint_check' /></td>
</tr>
<tr>
<td><input type="checkbox" name="attr_chk_art2"/>Art: <input type="text" style="width:80px; text-align:left;" name="attr_art2_name" value="Type"> </td>
<td><input type="number" name="attr_art2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{art2_name} roll}} {{rating_d=[[floor(@{art2}/10)]]}} {{rating_u=[[@{art2}%10]]}} {{normal_d=[[floor((@{art2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{art2}+@{modskillchk_tot})%10]]}}{{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_art2_check' /></td>
<td ><input type="checkbox" name="attr_chk_humint" /> HUMINT (10%)</td>
<td><input type="number" name="attr_humint" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=HUMINT roll}} {{rating_d=[[floor(@{humint}/10)]]}} {{rating_u=[[@{humint}%10]]}} {{normal_d=[[floor((@{humint}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{humint}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_humint_check' /></td>
<td><input type="checkbox" name="attr_chk_stealth"/> Stealth (10%)</td>
<td><input type="number" name="attr_stealth" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Stealth roll}} {{rating_d=[[floor(@{stealth}/10)]]}} {{rating_u=[[@{stealth}%10]]}} {{normal_d=[[floor((@{stealth}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{stealth}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_stealth_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_artillery" /> Artillery (0%)</td>
<td><input type="number" name="attr_artillery" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Artillery roll}} {{rating_d=[[floor(@{artillery}/10)]]}} {{rating_u=[[@{artillery}%10]]}} {{normal_d=[[floor((@{artillery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{artillery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_artillery_check' /></td>
<td ><input type="checkbox" name="attr_chk_law" /> Law (0%)</td>
<td><input type="number" name="attr_law" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Law roll}} {{rating_d=[[floor(@{law}/10)]]}} {{rating_u=[[@{law}%10]]}} {{normal_d=[[floor((@{law}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{law}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_law_check' /></td>
<td ><input type="checkbox" name="attr_chk_surgery" /> Surgery (0%)</td>
<td><input type="number" name="attr_surgery" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Surgery roll}} {{rating_d=[[floor(@{surgery}/10)]]}} {{rating_u=[[@{surgery}%10]]}} {{normal_d=[[floor((@{surgery}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{surgery}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_surgery_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_athletics" /> Athletics (30%)</td>
<td><input type="number" name="attr_athletics" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Athletics roll}} {{rating_d=[[floor(@{athletics}/10)]]}} {{rating_u=[[@{athletics}%10]]}} {{normal_d=[[floor((@{athletics}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{athletics}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_athletics_check' /></td>
<td ><input type="checkbox" name="attr_chk_medicine" /> Medicine (0%)</td>
<td><input type="number" name="attr_medicine" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Medicine roll}} {{rating_d=[[floor(@{medicine}/10)]]}} {{rating_u=[[@{medicine}%10]]}} {{normal_d=[[floor((@{medicine}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{medicine}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_medicine_check' /></td>
<td ><input type="checkbox" name="attr_chk_survival" /> Survival (10%)</td>
<td><input type="number" name="attr_survival" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Survival roll}} {{rating_d=[[floor(@{survival}/10)]]}} {{rating_u=[[@{survival}%10]]}} {{normal_d=[[floor((@{survival}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{survival}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_survival_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_bureaucracy" /> Bureaucracy (10%)</td>
<td><input type="number" name="attr_bureaucracy" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Bureaucracy roll}} {{rating_d=[[floor(@{bureaucracy}/10)]]}} {{rating_u=[[@{bureaucracy}%10]]}} {{normal_d=[[floor((@{bureaucracy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{bureaucracy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_bureaucracy_check' /></td>
<td ><input type="checkbox" name="attr_chk_melee_weapons" /> Melee Weapons (30%)</td>
<td><input type="number" name="attr_melee_weapons" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=melee_weapons roll}} {{rating_d=[[floor(@{melee_weapons}/10)]]}} {{rating_u=[[@{melee_weapons}%10]]}} {{normal_d=[[floor((@{melee_weapons}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{melee_weapons}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_melee_weapons_check' /></td>
<td ><input type="checkbox" name="attr_chk_swim" /> Swim (20%)</td>
<td><input type="number" name="attr_swim" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Swim roll}} {{rating_d=[[floor(@{swim}/10)]]}} {{rating_u=[[@{swim}%10]]}} {{normal_d=[[floor((@{swim}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{swim}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_swim_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_computer_science" /> Computer Science (0%)</td>
<td><input type="number" name="attr_computer_science" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Computer Science roll}} {{rating_d=[[floor(@{computer_science}/10)]]}} {{rating_u=[[@{computer_science}%10]]}} {{normal_d=[[floor((@{computer_science}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{computer_science}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_computer_science_check' /></td>
<td ><input type="checkbox" name="attr_chk_military_science1" /> Military Sci: <input type="text" style="width:80px; text-align:left;" name="attr_military_science1_name" value="Type"> </td>
<td><input type="number" name="attr_military_science1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{military_science1_name} roll}} {{rating_d=[[floor(@{military_science1}/10)]]}} {{rating_u=[[@{military_science1}%10]]}} {{normal_d=[[floor((@{military_science1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{military_science1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_military_science1_check' /></td>
<td ><input type="checkbox" name="attr_chk_unarmed_combat" /> Unarmed Combat (40%)</td>
<td><input type="number" name="attr_unarmed_combat" value="40"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Unarmed Combat roll}} {{rating_d=[[floor(@{unarmed_combat}/10)]]}} {{rating_u=[[@{unarmed_combat}%10]]}} {{normal_d=[[floor((@{unarmed_combat}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{unarmed_combat}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_unarmed_combat_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_craft1" /> Craft: <input type="text" style="width:80px; text-align:left;" name="attr_craft1_name" value="Type"></td>
<td><input type="number" name="attr_craft1" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{craft1_name} roll}} {{rating_d=[[floor(@{craft1}/10)]]}} {{rating_u=[[@{craft1}%10]]}} {{normal_d=[[floor((@{craft1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{craft1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_craft1_check' /></td>
<td ><input type="checkbox" name="attr_chk_military_science2" /> Military Sci: <input type="text" style="width:80px; text-align:left;" name="attr_military_science2_name" value="Type"> </td>
<td><input type="number" name="attr_military_science2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{military_science2_name} roll}} {{rating_d=[[floor(@{military_science2}/10)]]}} {{rating_u=[[@{military_science2}%10]]}} {{normal_d=[[floor((@{military_science2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{military_science2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_military_science2_check' /></td>
<td >&nbsp; &nbsp; &nbsp; Unnatural (0%)</td>
<td ><input type="number" name="attr_unnatural" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=unnatural roll}} {{rating_d=[[floor(@{unnatural}/10)]]}} {{rating_u=[[@{unnatural}%10]]}} {{normal_d=[[floor((@{unnatural}+@{modskillchk_tot})/10)]]}}{{normal_u=[[(@{unnatural}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_unnatural_check' /> </td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_craft2" /> Craft: <input type="text" style="width:80px; text-align:left;" name="attr_craft2_name" value="Type"></td>
<td><input type="number" name="attr_craft2" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{craft2_name} roll}} {{rating_d=[[floor(@{craft2}/10)]]}} {{rating_u=[[@{craft2}%10]]}} {{normal_d=[[floor((@{craft2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{craft2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_craft2_check' /></td>
<td ><input type="checkbox" name="attr_chk_navigate" /> Navigate (10%)</td>
<td><input type="number" name="attr_navigate" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Navigate roll}} {{rating_d=[[floor(@{navigate}/10)]]}} {{rating_u=[[@{navigate}%10]]}} {{normal_d=[[floor((@{navigate}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{navigate}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_navigate_check' /></td>
<td rowspan="7" colspan="3" style="padding: 0px;border:1px;text-align:center;height:100%">
<div class="fixedarea_skill">
<table class="sheet-internal" style="height:100%" width="100%">
<tr style="border-top:1px">
<td width="75%" ><input type="checkbox" name="attr_chk_skill_1" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_1" /></td>
<td width="15%"><input type="number" name="attr_skill_score_1"/></td>
<td width="15%" class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_1} roll}} {{rating_d=[[floor(@{skill_score_1}/10)]]}} {{rating_u=[[@{skill_score_1}%10]]}} {{normal_d=[[floor((@{skill_score_1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_1' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_2" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_2" /></td>
<td><input type="number" name="attr_skill_score_2"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_2} roll}} {{rating_d=[[floor(@{skill_score_2}/10)]]}} {{rating_u=[[@{skill_score_2}%10]]}} {{normal_d=[[floor((@{skill_score_2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_2' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_3" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_3" /></td>
<td><input type="number" name="attr_skill_score_3"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_3} roll}} {{rating_d=[[floor(@{skill_score_3}/10)]]}} {{rating_u=[[@{skill_score_3}%10]]}} {{normal_d=[[floor((@{skill_score_3}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_3}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_3' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_4" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_4" /></td>
<td><input type="number" name="attr_skill_score_4"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_4} roll}} {{rating_d=[[floor(@{skill_score_4}/10)]]}} {{rating_u=[[@{skill_score_4}%10]]}} {{normal_d=[[floor((@{skill_score_4}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_4}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_4' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_5" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_5" /></td>
<td><input type="number" name="attr_skill_score_5"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_5} roll}} {{rating_d=[[floor(@{skill_score_5}/10)]]}} {{rating_u=[[@{skill_score_5}%10]]}} {{normal_d=[[floor((@{skill_score_5}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_5}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_5' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_6" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_6" /></td>
<td><input type="number" name="attr_skill_score_6"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_6} roll}} {{rating_d=[[floor(@{skill_score_6}/10)]]}} {{rating_u=[[@{skill_score_6}%10]]}} {{normal_d=[[floor((@{skill_score_6}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_6}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_6' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_7" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_7" /></td>
<td><input type="number" name="attr_skill_score_7"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_7} roll}} {{rating_d=[[floor(@{skill_score_7}/10)]]}} {{rating_u=[[@{skill_score_7}%10]]}} {{normal_d=[[floor((@{skill_score_7}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_7}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_7' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_8" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_8" /></td>
<td><input type="number" name="attr_skill_score_8"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_8} roll}} {{rating_d=[[floor(@{skill_score_8}/10)]]}} {{rating_u=[[@{skill_score_8}%10]]}} {{normal_d=[[floor((@{skill_score_8}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_8}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_8' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_9" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_9" /></td>
<td><input type="number" name="attr_skill_score_9"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_9} roll}} {{rating_d=[[floor(@{skill_score_9}/10)]]}} {{rating_u=[[@{skill_score_9}%10]]}} {{normal_d=[[floor((@{skill_score_9}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_9}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_9' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_10" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_10" /></td>
<td><input type="number" name="attr_skill_score_10"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_10} roll}} {{rating_d=[[floor(@{skill_score_10}/10)]]}} {{rating_u=[[@{skill_score_10}%10]]}} {{normal_d=[[floor((@{skill_score_10}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_10}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_10' /></tr></tr>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_skill_11" />
<input type="text" style="width: 100%; text-align: left" name="attr_skill_name_11" /></td>
<td><input type="number" name="attr_skill_score_11"/></td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{skill_name_11} roll}} {{rating_d=[[floor(@{skill_score_11}/10)]]}} {{rating_u=[[@{skill_score_11}%10]]}} {{normal_d=[[floor((@{skill_score_11}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{skill_score_11}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_skill_check_11' /></tr></tr>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_criminology" /> Criminology (10%)</td>
<td><input type="number" name="attr_criminology" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Criminology roll}} {{rating_d=[[floor(@{criminology}/10)]]}} {{rating_u=[[@{criminology}%10]]}} {{normal_d=[[floor((@{criminology}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{criminology}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_criminology_check' /></td>
<td ><input type="checkbox" name="attr_chk_occult" /> Occult (10%)</td>
<td><input type="number" name="attr_occult" value="10"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;"><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Occult roll}} {{rating_d=[[floor(@{occult}/10)]]}} {{rating_u=[[@{occult}%10]]}} {{normal_d=[[floor((@{occult}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{occult}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_occult_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_demolitions" /> Demolitions (0%)</td>
<td><input type="number" name="attr_demolitions" value="0"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Demolitions roll}} {{rating_d=[[floor(@{demolitions}/10)]]}} {{rating_u=[[@{demolitions}%10]]}} {{normal_d=[[floor((@{demolitions}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{demolitions}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_demolitions_check' /></td>
<td ><input type="checkbox" name="attr_chk_persuade" /> Persuade (20%)</td>
<td><input type="number" name="attr_persuade" value="20"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Persuade roll}} {{rating_d=[[floor(@{persuade}/10)]]}} {{rating_u=[[@{persuade}%10]]}} {{normal_d=[[floor((@{persuade}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{persuade}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_persuade_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_disguise" /> Disguise (10%)</td>
<td><input type="number" name="attr_disguise" value="10"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Disguise roll}} {{rating_d=[[floor(@{disguise}/10)]]}} {{rating_u=[[@{disguise}%10]]}} {{normal_d=[[floor((@{disguise}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{disguise}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_disguise_check' /></td>
<td ><input type="checkbox" name="attr_chk_pharmacy" /> Pharmacy (0%)</td>
<td><input type="number" name="attr_pharmacy" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Pharmacy roll}} {{rating_d=[[floor(@{pharmacy}/10)]]}} {{rating_u=[[@{pharmacy}%10]]}} {{normal_d=[[floor((@{pharmacy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pharmacy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pharmacy_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_dodge" /> Dodge (30%)</td>
<td><input type="number" name="attr_dodge" value="30"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Dodge roll}} {{rating_d=[[floor(@{dodge}/10)]]}} {{rating_u=[[@{dodge}%10]]}} {{normal_d=[[floor((@{dodge}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{dodge}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_dodge_check' /></td>
<td ><input type="checkbox" name="attr_chk_pilot1" /> Pilot: <input type="text" style="width:80px; text-align:left;" name="attr_pilot1_name" value="Type"> </td> </td>
<td><input type="number" name="attr_pilot1" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{pilot1_name} roll}} {{rating_d=[[floor(@{pilot1}/10)]]}} {{rating_u=[[@{pilot1}%10]]}} {{normal_d=[[floor((@{pilot1}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pilot1}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pilot1_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_drive" /> Drive (20%)</td>
<td><input type="number" name="attr_drive" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Drive roll}} {{rating_d=[[floor(@{drive}/10)]]}} {{rating_u=[[@{drive}%10]]}} {{normal_d=[[floor((@{drive}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{drive}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_drive_check' /></td>
<td ><input type="checkbox" name="attr_chk_pilot2" /> Pilot: <input type="text" style="width:80px; text-align:left;" name="attr_pilot2_name" value="Type"> </td> </td>
<td><input type="number" name="attr_pilot2" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=@{pilot2_name} roll}} {{rating_d=[[floor(@{pilot2}/10)]]}} {{rating_u=[[@{pilot2}%10]]}} {{normal_d=[[floor((@{pilot2}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{pilot2}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_pilot2_check' /></td>
</tr>
<tr>
<td ><input type="checkbox" name="attr_chk_firearms" /> Firearms (20%)</td>
<td><input type="number" name="attr_firearms" value="20"/> </td>
<td class="attr-roll" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Firearms roll}} {{rating_d=[[floor(@{firearms}/10)]]}} {{rating_u=[[@{firearms}%10]]}} {{normal_d=[[floor((@{firearms}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{firearms}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_firearms_check' /></td>
<td ><input type="checkbox" name="attr_chk_psychoterapy" /> Psychotherapy (10%)</td>
<td><input type="number" name="attr_psychoterapy" value="0"/> </td>
<td class="attr-roll" style="border-right: 1px solid black;" ><button class='dg-roll blank-roll-button' type='roll' value='&{template:dg}{{lowwp=[[@{lowwill_chk}]]}} {{mod=[[@{modskillchk_tot}]]}} {{name=Psychotherapy roll}} {{rating_d=[[floor(@{psychoterapy}/10)]]}} {{rating_u=[[@{psychoterapy}%10]]}} {{normal_d=[[floor((@{psychoterapy}+@{modskillchk_tot})/10)]]}} {{normal_u=[[(@{psychoterapy}+@{modskillchk_tot})%10]]}} {{roll1=[[1d10-1]]}} {{roll2=[[1d10-1]]}} {{modifier=[[@{modskillchk_tot}]]}}' name='roll_psychoterapy_check' /></td>
</tr>
</table>
</div>
</div>
<span class="spacer"></span>
<span class="spacer2"></span>
<div class="maindiv" style="height:40px;">
<label class='sectionHeader '>
<input type="radio" name="attr_flipagent" class="switch-page" value="on"/><img class="switch-page" src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/footer1.png?raw=true" style="height:40px;width:100%;margin-left:-12px;object-fit: cover;" style="align:left">
</label>
</div>
<span class="spacer2"></span>
</div>
</div>
<!-- -->
</div>
</div>
</div>
</div>
</div>
</div>
<rolltemplate class="sheet-rolltemplate-bond">
<table >
<caption>{{name}}</caption>
{{#^rollGreater() roll maxwp}}
{{#^rollGreater() roll max_score}}
<tr>
<td width="60%" class="template_label">Projection:</td>
<td class="template_value">{{roll}}</td>
</tr>
<tr>
<td class="template_label">Bond loss:</td>
<td class="template_value">{{roll}}</td>
</tr>
<tr>
<td class="template_label">WP loss:</td>
<td class="template_value">{{roll}}</td>
</tr>
{{/^rollGreater() roll max_score}}
{{#rollGreater() roll max_score}}
<tr>
<td class="template_label">Projection:</td>
<td class="template_value">{{max_score}}</td>
</tr>
<tr>
<td class="template_label">Bond loss:</td>
<td class="template_value">{{max_score}}</td>
</tr>
<tr>
<td class="template_label">WP loss:</td>
<td class="template_value">{{roll}}</td>
</tr>
{{/rollGreater() roll max_score}}
{{/^rollGreater() roll maxwp}}
{{#rollGreater() roll maxwp}}
{{#^rollGreater() roll max_score}}
<tr>
<td class="template_label">Projection:</td>
<td class="template_value">{{maxwp}}</td>
</tr>
<tr>
<td class="template_label">Bond loss:</td>
<td class="template_value">{{roll}}</td>
</tr>
<tr>
<td class="template_label">WP loss:</td>
<td class="template_value">{{maxwp}}</td>
</tr>
{{/^rollGreater() roll max_score}}
{{#rollGreater() roll max_score}}
{{#rollGreater() maxwp max_score}}
<tr>
<td class="template_label">Projection:</td>
<td class="template_value">{{max_score}}</td>
</tr>
{{/rollGreater() maxwp max_score}}
{{#^rollGreater() maxwp max_score}}
<tr>
<td class="template_label">Projection:</td>
<td class="template_value">{{maxwp}}</td>
</tr>
{{/^rollGreater() maxwp max_score}}
<tr>
<td class="template_label">Bond loss:</td>
<td class="template_value">{{max_score}}</td>
</tr>
<tr>
<td class="template_label">WP loss:</td>
<td class="template_value">{{maxwp}}</td>
</tr>
{{/rollGreater() roll max_score}}
{{/rollGreater() roll maxwp}}
</table>
</rolltemplate>
<!--dg roll template -->
<rolltemplate class="sheet-rolltemplate-dg">
<table>
<caption>{{name}}</caption>
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
{{#^rollTotal() mod 0}}
<tr>
<td width="60%" class="template_label">Modifier:</td>
<td class="template_value">{{mod}}%</td>
</tr>
<tr>
<td class="template_label">Effective:</td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/^rollTotal() mod 0}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
<!--Normal-->
<tr style="background:#D3D3D3;">
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</tr>
</table>
</rolltemplate>
<!-- dg roll for stats allow results higher than 100% -->
<!--dg roll template -->
<rolltemplate class="sheet-rolltemplate-dg-stat">
<table>
<caption>{{name}}</caption>
<tr>
<td width="60%" class="template_label">Score:</td>
<td class="template_value">{{score}}</td>
</tr>
{{#rollLess() score 20}}
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">X5:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">X5 (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
{{#^rollTotal() mod 0}}
<tr>
<td class="template_label">Modifier:</td>
<td class="template_value">{{mod}}%</td>
</tr>
<tr>
<td class="template_label">Effective:</td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/^rollTotal() mod 0}}
{{/rollLess() score 20}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
<!--Normal-->
<tr style="background:#D3D3D3;">
<td class="template_label">Result:</td>
{{#rollGreater() score 19}}
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll2 0}}
<!-- They are all critical cause all the numbers between 1-20 at least are critical -->
{{#^rollTotal() roll2 0}}
<td style="background:Green;" class="template_value">Critical</td>
{{/^rollTotal() roll2 0}}
{{/rollTotal() roll1 0}}
{{#rollGreater() roll1 0}}
{{#rollLess() roll1 score_d}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollLess() roll1 score_d}}
{{#rollTotal() roll1 score_d}}
{{#rollLess() roll2 score_u}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollLess() roll2 score_u}}
{{#^rollLess() roll2 score_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollLess() roll2 score_u}}
{{/rollTotal() roll1 score_d}}
{{#rollGreater() roll1 score_d}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollGreater() roll1 score_d}}
{{/rollGreater() roll1 0}}
{{/rollGreater() score 19}}
{{#^rollGreater() score 19}}
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
{{/^rollGreater() score 19}}
</tr>
</table>
</rolltemplate>
<!--dt attack roll template -->
<rolltemplate class="sheet-rolltemplate-dg-attacklethal">
<table>
<caption> {{name}} <br> (skill: {{skillname}}) <br>
{{#rollTotal() aim 20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/aim.png?raw=true" style="width:20px;height:20px;">
{{/rollTotal() aim 20}}
{{#rollLess() callshot 0}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot 0}}
{{#rollLess() callshot -20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot -20}}
</caption>
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
<!-- -1 is point blank, 0 is normal, 1 2x, 2 5x -->
{{#rollGreater() kradius 0}}
<tr>
<td width="60%" class="template_label">Kill Radius: </td>
<td class="template_value"> <{{kradius}}m</td>
</tr>
{{/rollGreater() kradius 0}}
{{#rollTotal() dist -1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> <{{pointb}}m</td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">+{{distmod}}%</td>
</tr>
{{/rollTotal() dist -1}}
{{#rollTotal() dist 0}}
{{#rollGreater() base 0}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value">up to {{base}}m</td>
</tr>
{{/rollGreater() base 0}}
{{/rollTotal() dist 0}}
{{#rollTotal() dist 1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> {{base}}m - {{base2}}m</td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">{{distmod}}%</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> {{base2}}m - {{base5}}m </td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">{{distmod}}%</td>
</tr>
{{/rollTotal() dist 2}}
{{#rollGreater() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollGreater() accmod 0}}
{{#rollLess() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollLess() accmod 0}}
{{#rollTotal() aim 20}}
<tr>
<td width="60%" class="template_label">Aim: </td>
<td class="template_value">+{{aim}}%</td>
</tr>
{{/rollTotal() aim 20}}
{{#rollTotal() callshot -20}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -20}}
{{#rollTotal() callshot -40}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -40}}
{{#rollGreater() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">+{{custom}}%</td>
</tr>
{{/rollGreater() custom 0}}
{{#rollLess() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">{{custom}}%</td>
</tr>
{{/rollLess() custom 0}}
{{#rollTotal() rating_d normal_d}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_d normal_d}}
{{#^rollTotal() rating_d normal_d}}
{{#rollTotal() rating_u normal_u}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_u normal_u}}
{{/^rollTotal() rating_d normal_d}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
{{#rollGreater() AP 0}}
<tr>
<td class="template_label">Penetration:</td>
<td class="template_value"><strong>{{AP}}</strong></td>
</tr>
{{/rollGreater() AP 0}}
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<!--dt attack roll template -->
<rolltemplate class="sheet-rolltemplate-dg-attackfire">
<table>
<caption> {{name}} <br> (skill: {{skillname}}) <br>
{{#rollTotal() aim 20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/aim.png?raw=true" style="width:20px;height:20px;">
{{/rollTotal() aim 20}}
{{#rollLess() callshot 0}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot 0}}
{{#rollLess() callshot -20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot -20}}
</caption>
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
<!-- -1 is point blank, 0 is normal, 1 2x, 2 5x -->
{{#rollTotal() dist -1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> <{{pointb}}m</td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">+{{distmod}}%</td>
</tr>
{{/rollTotal() dist -1}}
{{#rollTotal() dist 0}}
{{#rollGreater() base 0}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value">up to {{base}}m</td>
</tr>
{{/rollGreater() base 0}}
{{/rollTotal() dist 0}}
{{#rollTotal() dist 1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> {{base}}m - {{base2}}m</td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">{{distmod}}%</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> {{base2}}m - {{base5}}m </td>
</tr>
<tr>
<td width="60%" class="template_label">Range Modifier: </td>
<td class="template_value">{{distmod}}%</td>
</tr>
{{/rollTotal() dist 2}}
{{#rollGreater() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollGreater() accmod 0}}
{{#rollLess() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollLess() accmod 0}}
{{#rollTotal() aim 20}}
<tr>
<td width="60%" class="template_label">Aim: </td>
<td class="template_value">+{{aim}}%</td>
</tr>
{{/rollTotal() aim 20}}
{{#rollTotal() callshot -20}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -20}}
{{#rollTotal() callshot -40}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -40}}
{{#rollGreater() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">+{{custom}}%</td>
</tr>
{{/rollGreater() custom 0}}
{{#rollLess() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">{{custom}}%</td>
</tr>
{{/rollLess() custom 0}}
{{#rollTotal() rating_d normal_d}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_d normal_d}}
{{#^rollTotal() rating_d normal_d}}
{{#rollTotal() rating_u normal_u}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_u normal_u}}
{{/^rollTotal() rating_d normal_d}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
{{#rollGreater() AP 0}}
<tr>
<td class="template_label">Penetration:</td>
<td class="template_value"><strong>{{AP}}</strong></td>
</tr>
{{/rollGreater() AP 0}}
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label" >Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dg-attackshotgun">
<table>
<caption> {{name}} <br> (skill: {{skillname}}) <br>
{{#rollTotal() aim 20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/aim.png?raw=true" style="width:20px;height:20px;">
{{/rollTotal() aim 20}}
{{#rollLess() callshot 0}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot 0}}
{{#rollLess() callshot -20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot -20}}
</caption>
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
<!-- -1 is point blank, 0 is normal, 1 2x, 2 5x -->
{{#rollLess() dist 1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> <{{base}}m</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> {{base}}m - {{base2}}m</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td width="60%" class="template_label">Range: </td>
<td class="template_value"> > {{base2}}m </td>
</tr>
{{/rollTotal() dist 2}}
{{#rollGreater() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollGreater() accmod 0}}
{{#rollLess() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollLess() accmod 0}}
{{#rollTotal() aim 20}}
<tr>
<td width="60%" class="template_label">Aim: </td>
<td class="template_value">+{{aim}}%</td>
</tr>
{{/rollTotal() aim 20}}
{{#rollTotal() callshot -20}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -20}}
{{#rollTotal() callshot -40}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -40}}
{{#rollGreater() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">+{{custom}}%</td>
</tr>
{{/rollGreater() custom 0}}
{{#rollLess() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">{{custom}}%</td>
</tr>
{{/rollLess() custom 0}}
{{#rollTotal() rating_d normal_d}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_d normal_d}}
{{#^rollTotal() rating_d normal_d}}
{{#rollTotal() rating_u normal_u}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_u normal_u}}
{{/^rollTotal() rating_d normal_d}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
{{#rollGreater() AP 0}}
<tr>
<td class="template_label">Penetration:</td>
<td class="template_value"><strong>{{AP}}</strong></td>
</tr>
{{/rollGreater() AP 0}}
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea_c}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb_c}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec_c}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea_c}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb_c}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec_c}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea_c}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb_c}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec_c}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<div>
{{#rollLess() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagea}}</td>
</tr>
{{/rollLess() dist 1}}
{{#rollTotal() dist 1}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damageb}}</td>
</tr>
{{/rollTotal() dist 1}}
{{#rollTotal() dist 2}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() dist 2}}
</div>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dg-attackhand">
<table>
<caption> {{name}} <br> (skill: {{skillname}}) <br>
{{#rollTotal() aim 20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/aim.png?raw=true" style="width:20px;height:20px;">
{{/rollTotal() aim 20}}
{{#rollLess() callshot 0}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot 0}}
{{#rollLess() callshot -20}}
<img src="https://github.com/Roll20/roll20-character-sheets/blob/master/DeltaGreenRPG/img/calledshot.png?raw=true" style="width:20px;height:20px;">
{{/rollLess() callshot -20}}
</caption>
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
{{#rollGreater() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollGreater() accmod 0}}
{{#rollLess() accmod 0}}
<tr>
<td width="60%" class="template_label">Accessory: </td>
<td class="template_value">+{{accmod}}%</td>
</tr>
{{/rollLess() accmod 0}}
{{#rollTotal() aim 20}}
<tr>
<td width="60%" class="template_label">Aim: </td>
<td class="template_value">+{{aim}}%</td>
</tr>
{{/rollTotal() aim 20}}
{{#rollTotal() callshot -20}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -20}}
{{#rollTotal() callshot -40}}
<tr>
<td width="60%" class="template_label">Called Shot: </td>
<td class="template_value">{{callshot}}%</td>
</tr>
{{/rollTotal() callshot -40}}
{{#rollGreater() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">+{{custom}}%</td>
</tr>
{{/rollGreater() custom 0}}
{{#rollLess() custom 0}}
<tr>
<td width="60%" class="template_label">Other: </td>
<td class="template_value">{{custom}}%</td>
</tr>
{{/rollLess() custom 0}}
{{#rollTotal() rating_d normal_d}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_d normal_d}}
{{#^rollTotal() rating_d normal_d}}
{{#rollTotal() rating_u normal_u}}
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/rollTotal() rating_u normal_u}}
{{/^rollTotal() rating_d normal_d}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
{{#rollGreater() AP 0}}
<tr>
<td class="template_label">Penetration:</td>
<td class="template_value"><strong>{{AP}}</strong></td>
</tr>
{{/rollGreater() AP 0}}
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label" >Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dg-attack-monster">
<table>
<caption>{{name}}</caption>
<tr>
<td colspan="2" class="template_value" style="text-align:left; background:#808080;">{{description}}</td>
</tr>
<tr>
<td class="template_label" style="background:black; color: white;" align="center">SKILL</td>
<td class="template_value">{{normal_d}}{{normal_u}}</td>
</tr>
{{#rollGreater() AP 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">AP</td>
<td class="template_value"><strong>{{APtext}}</strong></td>
</tr>
{{/rollGreater() AP 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">RESULT</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
<!--Normal-->
<tr style="background:#D3D3D3;">
<td class="template_label" style="background:black; color: white;" align="center" >ROLL</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</tr>
<!-- Critical damage except 01, double lethal rating and damage -->
{{#rollTotal() roll1 roll2}}
<!-- lethal damage -->
{{#rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge</td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
{{/rollGreater() lethal 0}}
<!-- normal damage -->
{{#^rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">{{damage_c}}</td>
</tr>
{{/^rollGreater() lethal 0}}
{{/rollTotal() roll1 roll2}}
<!-- Critical damage for 01 and normal damage -->
{{#^rollTotal() roll1 roll2}}
{{#rollTotal() roll1 0}}
<!--Critical 01 -->
{{#rollTotal() roll2 1}}
<!-- lethal damage -->
{{#rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">OUTCOME</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge</td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
{{/rollGreater() lethal 0}}
<!-- normal damage -->
{{#^rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">{{damage_c}}</td>
</tr>
{{/^rollGreater() lethal 0}}
{{/rollTotal() roll2 1}}
{{#^rollTotal() roll2 1}}
<!-- lethal damage -->
{{#rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">OUTCOME</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
{{/rollGreater() lethal 0}}
<!-- normal damage -->
{{#^rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() lethal 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
{{#^rollTotal() roll1 0}}
<!-- lethal damage -->
{{#rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">OUTCOME</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr> {{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
{{/rollGreater() lethal 0}}
<!-- normal damage -->
{{#^rollGreater() lethal 0}}
<tr>
<td class="template_label" style="background:black; color: white;" align="center">DAMAGE</td>
<td style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/^rollGreater() lethal 0}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dg-ritualdmg">
<table>
<caption> {{name}} </caption>
<tr>
<td colspan="2" class="template_value"><div style="min-height: 50px;">{{text}}</div></td>
</tr>
{{#rollGreater() time 1}}
<tr>
<td class="template_label">Activation:</td>
<td class="template_value">{{time}} {{unit}}s</td>
</tr>
{{/rollGreater() time 1}}
{{#^rollGreater() time 1}}
<tr>
<td class="template_label">Activation:</td>
<td class="template_label">{{time}} {{unit}}</td>
</tr>
{{/^rollGreater() time 1}}
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
{{#^rollTotal() mod 0}}
<tr>
<td width="60%" class="template_label">Modifier: </td>
<td class="template_value">{{mod}}</td>
</tr>
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/^rollTotal() mod 0}}
{{#rollGreater() wp 0}}
<tr>
<td width="60%" class="template_label">WP Cost: </td>
<td class="template_value">{{wp}}</td>
</tr>
{{/rollGreater() wp 0}}
{{#rollGreater() hp 0}}
<tr>
<td width="60%" class="template_label">HP Cost: </td>
<td class="template_value">{{hp}}</td>
</tr>
{{/rollGreater() hp 0}}
{{#rollGreater() pow 0}}
<tr>
<td width="60%" class="template_label">POW Cost: </td>
<td class="template_value">{{pow}}</td>
</tr>
{{/rollGreater() pow 0}}
{{#rollGreater() san 0}}
<tr>
<td width="60%" class="template_label">San Cost: </td>
<td class="template_value">{{san}}</td>
</tr>
{{/rollGreater() san 0}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() damagec 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollGreater() damagec 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() damagec 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollGreater() damagec 0}}
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() damagec 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damagec}}</td>
</tr>
{{/rollGreater() damagec 0}}
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() damage 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() damage 0}}
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() damage 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() damage 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() damage 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() damage 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() damage 0}}
<tr>
<td class="template_label">Damage:</td>
<td class="template_value" style="background:white; color:red;" class="template_value">{{damage}}</td>
</tr>
{{/rollGreater() damage 0}}
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-dg-rituallethality">
<table>
<caption> {{name}} </caption>
<tr>
<td colspan="2" class="template_value"><div style="min-height: 50px;">{{text}}</div></td>
</tr>
{{#rollGreater() time 1}}
<tr>
<td class="template_label">Activation:</td>
<td class="template_label">{{time}} {{unit}}s</td>
</tr>
{{/rollGreater() time 1}}
{{#^rollGreater() time 1}}
<tr>
<td class="template_label">Activation:</td>
<td class="template_label">{{time}} {{unit}}</td>
</tr>
{{/^rollGreater() time 1}}
{{#rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating:</td>
<td class="template_value">{{rating_d}}{{rating_u}}</td>
</tr>
{{/rollTotal() lowwp 0}}
{{#^rollTotal() lowwp 0}}
<tr>
<td width="60%" class="template_label">Rating (low WP):</td>
<td class="template_value" style="background:red">{{rating_d}}{{rating_u}}</td>
</tr>
{{/^rollTotal() lowwp 0}}
{{#^rollTotal() mod 0}}
<tr>
<td width="60%" class="template_label">Modifier: </td>
<td class="template_value">{{mod}}</td>
</tr>
<tr>
<td width="60%" class="template_label">Effective: </td>
{{#rollGreater() normal_d 9}}
<td class="template_value" style="font-weight:bold;color:red">9 9</td>
{{/rollGreater() normal_d 9}}
{{#rollBetween() normal_d 0 9}}
<td class="template_value">{{normal_d}}{{normal_u}}</td>
{{/rollBetween() normal_d 0 9}}
{{#rollLess() normal_d 0}}
<td class="template_value" style="font-weight:bold;color:red">0 0</td>
{{/rollLess() normal_d 0}}
</tr>
{{/^rollTotal() mod 0}}
{{#rollGreater() wp 0}}
<tr>
<td width="60%" class="template_label">WP Cost: </td>
<td class="template_value">{{wp}}</td>
</tr>
{{/rollGreater() wp 0}}
{{#rollGreater() hp 0}}
<tr>
<td width="60%" class="template_label">HP Cost: </td>
<td class="template_value">{{hp}}</td>
</tr>
{{/rollGreater() hp 0}}
{{#rollGreater() pow 0}}
<tr>
<td width="60%" class="template_label">POW Cost: </td>
<td class="template_value">{{pow}}</td>
</tr>
{{/rollGreater() pow 0}}
{{#rollGreater() san 0}}
<tr>
<td width="60%" class="template_label">San Cost: </td>
<td class="template_value">{{san}}</td>
</tr>
{{/rollGreater() san 0}}
<tr>
<td class="template_label">Rolled:</td>
<td class="template_value">{{roll1}}{{roll2}}</td>
</tr>
<!--Normal-->
<tr>
<td class="template_label">Result:</td>
<!--For Critical and Fumble with the exception of 01 -->
{{#rollTotal() roll1 roll2}}
<!--Handle 00 -->
{{#rollTotal() roll1 0}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollTotal() roll1 0}}
<!-- Handle all other matching dice -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Fumble -->
{{#rollGreater() roll1 normal_d}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:DarkRed;" class="template_value">Fumble</td>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Crit -->
{{#rollLess() roll1 normal_d}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/rollTotal() roll1 roll2}}
{{#^rollTotal() roll1 roll2}}
<!--For Success and Failure AND critical 01 -->
<!--Handle 01-09 -->
{{#rollTotal() roll1 0}}
{{#rollTotal() roll2 1}}
<td style="background:Green;" class="template_value">Critical</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_cd}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_cd}}
{{#rollTotal() roll_l1 lethal_cd}}
{{#rollGreater() roll_l2 lethal_cu}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_cu}}
{{#^rollGreater() roll_l2 lethal_cu}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_cu}}
{{/rollTotal() roll_l1 lethal_cd}}
{{#rollLess() roll_l1 lethal_cd}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_cd}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">40</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">38</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">22</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">24</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">26</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">28</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">30</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">32</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">34</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">36</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td></td>
<td style="background:white; color:red;" class="template_value">{{huge_lc}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/rollTotal() roll2 1}}
<!--I need to handle all the 02-09 as a separate case -->
{{#^rollTotal() roll2 1}}
<!--if normal_d is greater than 0 it's alway a success -->
{{#rollGreater() normal_d 0}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/rollGreater() normal_d 0}}
<!--if normal_d is Less than 0 (it might happen due to modifiers) it's alway a failure -->
{{#rollLess() normal_d 0}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollLess() normal_d 0}}
{{#rollTotal() normal_d 0}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() normal_d 0}}
{{/^rollTotal() roll2 1}}
{{/rollTotal() roll1 0}}
<!--Handle Everything else -->
{{#^rollTotal() roll1 0}}
<!-- if roll1 is greater than normal_d it is always a Failure -->
{{#rollGreater() roll1 normal_d}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll1 normal_d}}
<!-- if roll1 is equal to normal_d it might be both -->
{{#rollTotal() roll1 normal_d}}
{{#rollGreater() roll2 normal_u}}
<td style="background:Red;" class="template_value">Failure</td>
</tr>
{{/rollGreater() roll2 normal_u}}
{{#^rollGreater() roll2 normal_u}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() lethality 0}}
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/rollGreater() lethality 0}}
{{/^rollGreater() roll2 normal_u}}
{{/rollTotal() roll1 normal_d}}
<!-- if roll1 is Less than normal_d it is always a Success -->
{{#rollLess() roll1 normal_d}}
<td style="background:Lime;" class="template_value">Success</td>
</tr>
{{#rollGreater() lethality 0}}
<div>
<tr>
<td style="background:black; color: white;" class="template_label">Outcome:</td>
{{#rollGreater() roll_l1 lethal_d}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l1 lethal_d}}
{{#rollTotal() roll_l1 lethal_d}}
{{#rollGreater() roll_l2 lethal_u}}
<td style="background:white; color:black;" class="template_value">Normal</td>
{{/rollGreater() roll_l2 lethal_u}}
{{#^rollGreater() roll_l2 lethal_u}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/^rollGreater() roll_l2 lethal_u}}
{{/rollTotal() roll_l1 lethal_d}}
{{#rollLess() roll_l1 lethal_d}}
<td style="background:red; color:white;" class="template_value">Kill</td>
{{/rollLess() roll_l1 lethal_d}}
</tr>
<!-- Test lethal Results -->
{{#rollTotal() roll_l1 0}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">20</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 0}}
{{#rollTotal() roll_l1 1}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">2</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 1}}
{{#rollTotal() roll_l1 2}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">3</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 2}}
{{#rollTotal() roll_l1 3}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">4</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 3}}
{{#rollTotal() roll_l1 4}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">5</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 4}}
{{#rollTotal() roll_l1 5}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">6</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 5}}
{{#rollTotal() roll_l1 6}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">7</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 6}}
{{#rollTotal() roll_l1 7}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">8</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 7}}
{{#rollTotal() roll_l1 8}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">9</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 8}}
{{#rollTotal() roll_l1 9}}
{{#rollTotal() roll_l2 0}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">19</td>
</tr>
{{/rollTotal() roll_l2 0}}
{{#rollTotal() roll_l2 1}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">10</td>
</tr>
{{/rollTotal() roll_l2 1}}
{{#rollTotal() roll_l2 2}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">11</td>
</tr>
{{/rollTotal() roll_l2 2}}
{{#rollTotal() roll_l2 3}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">12</td>
</tr>
{{/rollTotal() roll_l2 3}}
{{#rollTotal() roll_l2 4}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">13</td>
</tr>
{{/rollTotal() roll_l2 4}}
{{#rollTotal() roll_l2 5}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">14</td>
</tr>
{{/rollTotal() roll_l2 5}}
{{#rollTotal() roll_l2 6}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">15</td>
</tr>
{{/rollTotal() roll_l2 6}}
{{#rollTotal() roll_l2 7}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">16</td>
</tr>
{{/rollTotal() roll_l2 7}}
{{#rollTotal() roll_l2 8}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">17</td>
</tr>
{{/rollTotal() roll_l2 8}}
{{#rollTotal() roll_l2 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Damage:</td>
<td style="background:white; color:red;" class="template_value">18</td>
</tr>
{{/rollTotal() roll_l2 9}}
{{/rollTotal() roll_l1 9}}
<tr>
<td style="background:black; color: white;" class="template_label">Huge:</td>
<td style="background:white; color:red;" class="template_value">{{huge_l}}</td>
</tr>
</div>
{{/rollGreater() lethality 0}}
{{/rollLess() roll1 normal_d}}
{{/^rollTotal() roll1 0}}
{{/^rollTotal() roll1 roll2}}
</table>
</rolltemplate>