Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Add Roll Parsing to Jakob's Better Default Rolltemplate?

Through simple cut & paste, I can get either "Jakob's Better Default Rolltemplate" added to my character sheet, or I can get the Roll Parsing examples from the Wiki to trigger on critical success/failure.  However, I cannot figure out to add the roll  parsing helper functions, such as "{{#rollWasCrit() <rollname>}}", to Jakob's template.  Can anyone help me with that?  The custom roll template I currently have working is below. <rolltemplate class="sheet-rolltemplate-custom">   <div class="sheet-container sheet-color-{{color}}">     <div class="sheet-header">       {{#title}}<div class="sheet-title">{{title}}</div>{{/title}}       {{#subtitle}}<div class="sheet-subtitle">{{subtitle}}</div>{{/subtitle}}     </div>     <div class="sheet-content">       {{#allprops() title subtitle desc color}}       <div class="sheet-key">{{key}}</div>       <div class="sheet-value">{{value}}</div>       {{/allprops() title subtitle desc color}}       {{#desc}}<div class="sheet-desc">{{desc}}</div>{{/desc}}     </div>   </div> </rolltemplate>
You'll get better answers on the  Character Sheets & Compendium  forum.
1729118824

Edited 1729119210
GiGs
Pro
Sheet Author
API Scripter
When you do post it on the character sheets forum, please include: the roll you used The sheet worker for custom roll parsing The modification of jakobs rolltemplate, designed to work with that sheet worker. What you want the output to look like. I ask for those bits of info, because I'm not seeeing the difficulty. We can't help without knowing what's going wrong.
Thanks - new to this, and didn't know which forum to use.  After a night's sleep, I now have it kind of working.  Still got some formatting issues, but if I can't figure those out, I now know which forums to go to.  :)
1729215465

Edited 1729220392
FYI:  Here is my final code.  //roll template for death saving throws <rolltemplate class="sheet-rolltemplate-deathsave"> <div class="sheet-container sheet-color-{{color}}"> <div class="sheet-header"> {{#title}}<div class="sheet-title">{{title}}</div>{{/title}} {{#subtitle}}<div class="sheet-subtitle">{{subtitle}}</div>{{/subtitle}} </div> <div class="sheet-content"> {{#allprops() title subtitle desc color}} <div class="sheet-key">{{key}}</div> <div class="sheet-value">{{value}}</div> {{/allprops() title subtitle desc color}} {{#rollWasCrit() roll}} <div class="sheet-desc"> **Critical Success!** You are restored to 1 HP. </div> {{/rollWasCrit() roll}} {{#rollWasFumble() roll}} <div class="sheet-desc"> **Critical Failure!** You take 1 **True Damage**. Also, you fall **Unconscious** until you’re restored to 1 HP or higher. </div> {{/rollWasFumble() roll}} {{#desc}}<div class="sheet-desc">{{desc}}</div>{{/desc}} </div> </div> </rolltemplate>
1729217665
GiGs
Pro
Sheet Author
API Scripter
Looks good. The think I still keep overlooking when using rolltemplates is those parantheses. I'll write something like this {{#rollWasCrit roll}} and then struggle to understand why the code isn't working, and waste time looking for the problem.