
Hi, I've modified t he roll template from the roll20 character sheet for Pathfinder and I can't get it to work the way I want. The roll is pretty straightforward and consists of: 2 attack rolls confirmation roll (if an attack roll is a critical) damage and critical damage (if an attack roll is a critical) damage2 & damage3 (extra damage type) I run into two issues: If only the second attack roll is a critical, the confirmation roll is shown but not the critical damage If both attack rolls are a critical, two confirmation rolls are shown (always the same results) instead of only one I've tried numerous ways to make it work, but to no avail. I don't know if its possible, but if it is I'm sure some of you can point me in the right direction or offer an alternative. I know the css classes and styles are a mess but I'll clean this up later. Thanks a lot. Sebastien Here is the roll template code: < rolltemplate class = "sheet-rolltemplate-pc" > {{#name}} {{#rollTotal() showchar 1}} < div class = "charname smallname bold" > {{charname}} </ div > {{/rollTotal() showchar 1}} {{/name}} {{#smallname}} < div class = "charname smallname bold" style = " line-height: 40px;" > {{#rollTotal() showchar 1}}{{charname}} /{{/rollTotal() showchar 1}} {{smallname}} </ div > {{/smallname}} < div class = "bordered" > {{#type}} < div class = "icon sheet-{{type}}" ></ div > {{/type}} {{#name}} < div class = "vtop" > < div class = "blacklabel top" > < span class = "big" > {{name}} </ span > {{#feattype}} < span class = "med" > ({{feattype}}) </ span > {{/feattype}} {{#abilitytype}} < span class = "med" > ({{abilitytype}}) </ span > {{/abilitytype}} {{#casterclass}} < span class = "med" > ({{casterclass}} </ span > {{#level}} < span class = "med" > {{level}} </ span > {{/level}} < span class = "med" > ) </ span > {{/casterclass}} < img class = "brdright" src = "..." /> </ div > {{^roll1}}{{#roll}} < div class = "resright" > {{roll}} </ div >< div class = "resright" > {{roll2}} </ div > {{/roll}}{{/roll1}} </ div > {{^roll1}} {{#attack}} {{#rollWasCrit() roll}} < div class = "vtop" > < div class = "blacklabel long left" style = " background-color: #0e7505; height: 30px;" > < img class = "brdright" style = " background-color: #0e7505; height: 30px;" src = "..." /> < span data-i18n = "confirm-crit" style = " line-height: 30px;" > Crit Confirm? </ span > </ div > < span style = " font-size: 1.2em; line-height: 30px;" > {{critconfirm}} </ span > </ div > {{/rollWasCrit() roll}} {{#rollWasCrit() roll2}} < div class = "vtop" > < div class = "blacklabel long left" style = " background-color: #0e7505; height: 30px;" > < img class = "brdright" style = " background-color: #0e7505; height: 30px;" src = "..." /> < span data-i18n = "confirm-crit" style = " line-height: 30px;" > Crit Confirm? </ span > </ div > < span style = " font-size: 1.2em; line-height: 30px;" > {{critconfirm}} </ span > </ div > {{/rollWasCrit() roll2}} {{/attack}} {{/roll1}} {{/name}} {{#damage}} {{#dmg1flag}} < div class = "flexdmg vtop" > < div class = "blacklabel med" style = " background-color: #7c0b0b; width: 123px; height: 30px;" > < span style = " text-align: center; font-size: 1.2em; line-height: 30px;" data-i18n = "damage" > Damage </ span > < img class = "brdright" style = " background-color: #7c0b0b; height: 30px;" src = "..." /> </ div > < span style = " font-size: 1.2em;" > {{#rollGreater() dmg1 0}}{{dmg1}}{{/rollGreater() dmg1 0}} {{#rollLess() dmg1 1}}{{nonlethal}}{{/rollLess() dmg1 1}} </ span > {{#dmg1crit}} {{#roll}}{{#rollWasCrit() roll}} < span class = "symbol" data-i18n-title = "critical-damage" title = "Critical damage" > t </ span > < span style = " font-size: 1.2em;" > {{dmg1crit}} </ span > {{/rollWasCrit() roll}}{{/roll}} {{^roll}} < span class = "symbol" data-i18n-title = "critical-damage" title = "Critical damage" > t </ span > {{dmg1crit}}{{/roll}} {{/dmg1crit}} < span class = "notes inl" > &nbsp; {{dmg1type}} </ span > </ div > {{/dmg1flag}} {{#dmg2flag}} < div class = "flexdmg" style = " padding-top: 1px;" > < div class = "blacklabel med" style = " background-color: #b81b1b; width: 115px;" > < span style = " text-transform: capitalize;" > {{dmg2name}} </ span > < img class = "brdright" style = " background-color: #b81b1b;" src = "..." /> </ div > {{#rollGreater() dmg2 0}}{{dmg2}}{{/rollGreater() dmg2 0}} {{#rollLess() dmg2 1}}{{nonlethal}}{{/rollLess() dmg2 1}} < span class = "notes inl" > &nbsp; {{dmg2type}} </ span > </ div > {{/dmg2flag}} {{#dmg3flag}} < div class = "flexdmg" > < div class = "blacklabel med" style = " background-color: #b81b1b; width: 115px;" > < span style = " text-transform: capitalize;" > {{dmg3name}} </ span > < img class = "brdright" style = " background-color: #b81b1b;" src = "..." /> </ div > {{#rollGreater() dmg3 0}}{{dmg3}}{{/rollGreater() dmg3 0}} {{#rollLess() dmg3 1}}{{nonlethal}}{{/rollLess() dmg3 1}} < span class = "notes inl" > &nbsp; {{dmg3type}} </ span > </ div > {{/dmg3flag}} {{/damage}} </ rolltemplate >