I've been working on my character sheet, and have run into a snag. I'm trying to pass a checkbox value (in a repeating item section) to a roll template as part of a roll and change the output in the chat window. I'm not sure if this is even a sane way to do what I'm trying to accomplish, but it was built from an example sheet that I had access to. I suspect I'm not referencing repeating item variables correctly in the sheetworker script, but I'm not sure. Here is the relevant code: The relevant Character Sheet HTML: < div class = "injury" > < span class = "label-100px heading" > Injury </ span > < span class = "label-100px heading" > Severity </ span > < span class = "label-50px heading" > Level </ span > < span class = "label-50px heading" > Points </ span > < span class = "label-25px heading" style = " font-family: pictos " > S </ span > < span class = "label-100px heading" > Bleeding Rate </ span > < span class = "label-100px heading" > Location(s) </ span > < span class = "label-100px heading" > Type </ span > < span class = "label-25px heading" > Inf </ span > &nbsp;&nbsp;&nbsp;&nbsp; < span class = "label-100px heading" > Recovery </ span > < fieldset class = "repeating_injury" > < input type = "text" name = "attr_injury-name" class = "label-100px" > < select name = "attr_injury-severity" class = "label-100px" > < option value = "Superficial (s)" > Superficial </ option > < option value = "Minor (M)" > Minor </ option > < option value = "Serious (S)" > Serious </ option > < option value = "Critical (C)" > Critical </ option > < option value = "Greivous (G)" > Greivous </ option > < option value = "Mortal (K)" > Mortal </ option > </ select > &nbsp; < input type = "number" name = "attr_injury-level" min = "0" max = "9" value = "0" > &nbsp; < input type = "number" name = "attr_injury-points" min = "0" max = "99" value = "0" > &nbsp;&nbsp;&nbsp; < input type = "checkbox" name = "attr_injury-enchanted" class = "enchanted" >< span ></ span > < select name = "attr_injury-bleeder" class = "label-100px" > < option value = "0" > ○○○○○○ </ option > < option value = "1" > ○○○○○● </ option > < option value = "2" > ○○●○○● </ option > < option value = "3" > ○●○●○● </ option > < option value = "4" > ○●●○●● </ option > < option value = "5" > ○●●●●● </ option > < option value = "6" > ●●●●●● </ option > </ select > < input type = "text" name = "attr_injury-location" class = "label-100px" > < input type = "text" name = "attr_injury-type" class = "label-100px" > < span class = "label-12px" > &nbsp; </ span > < input type = "checkbox" name = "attr_injury-infected" class = "infected" >< span ></ span > < input type = "hidden" name = "attr_injury-infected-feedback" value = "0" readonly > < span class = "label-10px" > &nbsp; </ span > < input type = "number" name = "attr_injury-hr" min = "0" max = "7" value = "0" > < button type = "roll" class = "button-roll" value = "&{template:rolltest} {{character_name=@{character_name}}} {{infected=[[1]]}} {{rolldesc=Recovers @{injury-name}}} {{rolltarget=[[{[[{[[[[@{injury-hr}*@{endurance} ]]- [[(@{fatigue})*5]] + [[@{modifier}]]]],5}kh1]],95}kl1 (HR)]]}} {{penalty=[[(@{fatigue})*5 (Fatigue Penalty)]]}} {{rollresult=[[1d100cs5cs10cs15cs20cs25cs30cs35cs40cs45cs50cs55cs60cs65cs70cs75cs80cs85cs90cs95cs100]]}} {{targetmod=[[@{modifier} (@{modifier|max})]]}} {{ml=[[@{injury-hr}*@{endurance} (@{injury-hr} x END)]]}} {{note=@{injury-severity} @{injury-type} to the @{injury-location}: @{injury-level} / @{injury-points} }}{{detail=@{injury-details} @{injury-infected} }}" name = "roll_injury-recovery-test" > </ button > <!-- <button type="roll" value="&{template:rollcheck} {{character_name=@{NAME}}} {{rolldesc=rolls a Healing Check}} {{infected=[[@{INJURY_INFECTED_FEEDBACK}]]}} {{rolltarget=[[{[[{[[(@{INJURY_HEALINGROLL} * [[@{COMBAT_ENDURANCE}]]) + ?{Target Modifier?|0}]],5}kh1]],95}kl1]]}} {{penalty=[[0]]}} {{rollresult=[[1d100cs5cs10cs15cs20cs25cs30cs35cs40cs45cs50cs55cs60cs65cs70cs75cs80cs85cs90cs95cs100]]}} {{targetmod=[[?{Target Modifier?|0}]]}} {{ml=[[@{INJURY_HEALINGROLL} * [[@{COMBAT_ENDURANCE}]]]]}} {{note=@{INJURY_LOCATION} @{INJURY_SEVERITY}@{INJURY_LEVEL} H@{INJURY_HEALINGROLL}}}" name="roll_HealingCheck" {{infected=[[@{injury-infected-feedback}]]}} ></button></div> --> < input type = "checkbox" class = "sheet-skill-detail-show gear" />< span ></ span > < div class = "sheet-skill-detail" > < textarea name = "attr_injury-details" class = "textarea-contacts" placeholder = "Injury Details..." ></ textarea > </ div > </ fieldset > </ div > The Javascript: < script type = "text/worker" > on("change:repeating_injury:injury-infected", function() { getAttrs([ "repeating_injury_injury-infected", "repeating_injury_injury-infected-feedback" ], function(values) { var isInfected = (values.repeating_injury_injury-infected == 0 ? 0 : 1); setAttrs({ repeating_injury_injury-infected-feedback: isInfected }); }); }); </ script > And the roll template < rolltemplate class = "sheet-rolltemplate-rolltest" > < table > < tr > < th colspan = "2" >< span class = "tcat" > {{character_name}} {{rolldesc}} </ span ></ th > </ tr > {{#infected}} {{#rollTotal() infected 1}} < tr > < td colspan = "2" class = "sheet-infected" > Infected </ td > </ tr > {{/rollTotal() infected 1}} {{/infected}} <!-- <tr><td><span class="sheet-tcat">&nbsp;M% &nbsp;- &nbsp;GP &nbsp;+ &nbsp;Mod &nbsp;=</span></td><td><span class="sheet-tcat"> EML</span></td></tr> --> < tr >< td > {{ml}} - {{penalty}} + {{targetmod}} = </ td >< td > < span class = "sheet-right" > {{rolltarget}} </ span ></ td ></ tr > < tr >< td >< span class = "sheet-tcat" > Roll(1d100): </ span ></ td >< td > {{rollresult}} </ td ></ tr > {{#^rollGreater() rollresult rolltarget}} {{#rollWasCrit() rollresult }} < tr > < td colspan = "2" class = "sheet-crit-success" > Critical Success!! </ td > </ tr > {{/rollWasCrit() rollresult }} {{#^rollWasCrit() rollresult }} < tr > < td colspan = "2" class = "sheet-success" > Marginal Success. </ td > </ tr > {{/^rollWasCrit() rollresult }} {{/^rollGreater() rollresult rolltarget}} {{#rollGreater() rollresult rolltarget}} {{#rollWasCrit() rollresult }} < tr > < td colspan = "2" class = "sheet-crit-failure" > Critical Failure!! </ td > </ tr > {{/rollWasCrit() rollresult }} {{#^rollWasCrit() rollresult }} < tr > < td colspan = "2" class = "sheet-failure" > Marginal Failure. </ td > </ tr > {{/^rollWasCrit() rollresult }} {{/rollGreater() rollresult rolltarget}} {{#note}} < tr > < td colspan = "2" class = "sheet-note" > {{note}} </ td > </ tr > {{/note}} {{#detail}} < tr > < td colspan = "2" class = "sheet-detail" > {{detail}} </ td > </ tr > {{/detail}} </ table > </ rolltemplate > The roll template seems to be working. I'm able to hard-code the call to the sheetworker with {{infected=[[1]]}} or {{infected=[[0]]}}; it's set to 1 in the code above... With 0 the row is not present and with 1 the infected line is included. I also toyed with the details field in the very long roll-button value text (Can this not be broken across multiple lines? It's really difficult to edit but breaking lines breaks the rolls...) When I include @{injury-infected} I get either "0" or "on" depending upon whether the rows checkbox is checked or not. When I include @{injury-infected-feedback} I get 0 either way. This leads me to believe the error is in the sheetworker script. Which is supposed to convert the repeating_injury variable injury-infected to injury-infected-feedback as 1 or 0; this is the part that's not working. Is there a better way to do this? Thanks.