Hey guys, I'm currently making a custom character sheet for the Unofficial Elder Scrolls RPG. I've just reached the point of implementing some custom rolls for various skill checks. Thing is, in UERPG you have character specific 'lucky' and 'unlucky' numbers for both crits and fumbles. What I'd like to know is if there is a simple way of using #rollTotal() to check the roll against one of these lucky/unlucky attributes? Here's where I'm currently at: Roll Template <rolltemplate class="sheet-rolltemplate-check">
<div class = "sheet-rolltemplate-check-container">
<div class ="sheet-rolltemplate-check-header">
{{#title}}<div class="sheet-rolltemplate-check-title">{{title}}</div>{{/title}}
{{#subtitle}}<div class="sheet-rolltemplate-check-subtitle">{{subtitle}}</div>{{/subtitle}}
</div>
<div class = "sheet-rolltemplate-check-content">
{{#allprops() title subtitle luck}}
<div class="sheet-rolltemplate-check-key">{{key}}</div>
<div class="sheet-rolltemplate-check-value">{{value}}</div>
{{/allprops() title subtitle luck}}
{{#rollTotal() result luck}}
<span>Critical Success!</span>
{{/rollTotal() result luck}}
</div>
</div
</rolltemplate> The actual roll <button class = "sheet-skill-rollbutton" type="roll" value=
"&{template:check} {{title = Acrobatics}} {{target = @{acrotn}}} {{result = 4}} {{luck = @{luck1}}}"
name="roll_AcroCheck">Acrobatics</button></div> I've manually set result to 4 as that is the current value of the luck1 attribute. The target roll value works completely fine when using it in the roll display. It seems that when I try to use the luck value in a rollTotal helper it borks and throws the "Error while checking for roll total..." message. Here's what the roll looks like, even though 'result' and 'luck' are both definitely 4, nothing appears. Is rollTotal used for something completely different from what I'm thinking? Hopefully I've just stuffed some formatting up somewhere, I'd love to use these roll helpers to keep my sheet a bit more compact. Any advice or tips would be splendid, thanks in advance :)