
I have this code outside a repeating section
But I put the same code into a repeating section it crashes on the fumble
<input class="sheet-skill_values" type="text" disabled value="[@{stealth_mod}+@{hide_value}+@{fatigue_mod}]" name="attr_sneak_total" /> <button type="roll" value="&{template:skillRoll} {{name=@{character_name}}} {{skillvalue=[@{sneak_total}]}} {{fumble=[[ceil(95+([@{sneak_total}])/20))]]}} {{crit=[[ceil(([@{sneak_total}])/20)+1]]}} {{special=[[ceil(([@{sneak_total}])/5)+1]]}} {{success=[[[@{sneak_total}]]]}} {{roll=[[1d100]]}} {{skillname=Sneak}}" ></button>In it works fine.
But I put the same code into a repeating section it crashes on the fumble
<input type="number" disabled name="attr_wpn_attk_total" value="@{wpn_attk_value}+@{manipulation_mod}+@{fatigue_mod}" /> <button type="roll" value="&{template:skillRoll} {{name=@{character_name}}} {{skillvalue=[@{wpn_attk_total}]}} {{fumble=[[ceil(95+([@{wpn_attk_total}])/20))]]}} {{crit=[[ceil(([@{wpn_attk_total}])/20)+1]]}} {{special=[[ceil(([@{wpn_attk_total}])/5)+1]]}} {{success=[[[@{wpn_attk_total}]]]}} {{roll=[[1d100]]}} {{skillname=Attack}}" ></button>
SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but ")" found.