I am struggling a bit. I have a repeating section that for each row there is a roll button. Each roll button currently performs two rolls (checks). I would like to remove the second check dependant on one of the values in the row. I would like to roll n d n + modifier and if a certain "input select" (see image) in the row is selected I would also like to roll a d12+modifier I would like to send the above to a template. I am familiar with workers and templates, including options for repeating section workers. My first thought was to define a hidden attribute that would have a default value that would be changed if the selection value was changed. Then have the Roll Button just @the hidden attribute, the problem here is that the hidden field would also have @attribute references and im not sure if a nested parse for @attribs would work.. So im trying to control whether the d12 is actually rolled or not, and in the case where it isnt to not display it in the template. (Obviously an blank "" value for the 2nd check or its omission would allow me to withhold it from the template display. ) Included below: Code for the repeating section and its roll button. Included below: Image showing the selection field that determines whether a d12 is to also be rolled or not <div class="div-actions">
<div class="div-top-band">
<h3>Attacks / Spells / Actions</h3>
</div>
<fieldset class="repeating_actions">
<div class="div-action-repeating">
<button type="roll" name="roll_action" class="input-action-roll"
value="&{template:sorrowstale-action}{{check=[[@{action_numdice}@{action_die}+@{action_increment}]]}}{{checkd12=[[@1d12+@{action_d12bonus}]]}}{{charName=@{character_name}}}{{d12=@{action_d12}}}" >
</button>
<select name="attr_action_type" class="input-action-type">
<option selected>Attack</option>
<option>Spell</option>
<option>Action</option>
<option>Effect</option>
<option>Damage</option>
<option>Other</option>
</select>
<input type="text" name="attr_action_desc" value="" class="input-action-desc" placeholder="Description">
<input type="number" name="attr_action_numdice" min="1" max="20" class="input-action-numdice nospinner" value="1" title = "# Dice" />
<input type="text" value="x" disabled class="input-action-labelx">
<select name="attr_action_die" class="input-action-die">
<option selected hidden readonly>Dice</option>
<option>d20</option>
<option>d12</option>
<option>d10</option>
<option>d8</option>
<option>d6</option>
<option>d4</option>
<option>d100</option>
</select>
<input type="text" value="+" disabled class="input-action-labelx">
<input type="number" name="attr_action_increment" min="-30" max="30" class="input-action-increment nospinner" value="0" title = "Mod + Bonus" />
<select name="attr_action_d12" class="input-action-d12">
<option value="1" selected >☑ d12</option>
<option value="2">☒ d12</option>
</select>
<input type="number" name="attr_action_d12bonus" min="-3" max="3" class="input-action-d12bonus nospinner" value="0" title = "d12 Bonus" />
<br />
</div>
</fieldset>
</div> Thanks Sorrow's Tale™