I'm sure I'm not the first to want to do this, but I could not find anything in my search of the forum. Apologies if this ground has already been covered. I want to add the attribute StrMod from elsewhere on the sheet to the damageroll of the roll button, if the weapon type is Melee. I thought perhaps a hidden attribute set by a sheet worker to 0 or StrMod depending, but I wasn't sure if that was possible considering these attributes repeat. Any help is greatly appreciated! <fieldset class="repeating_weapons">
<div class="sheet-skillcontainer">
<input type="text" name="attr_weaponname" class="sheet-no-border sheet-weapon-name" placeholder="Weapon Name">
<select name="attr_weapontype" class="sheet-no-border sheet-weapon-type">
<option value="@{MeleeAT}" selected>Melee</option>
<option value="@{RangedAT}">Finesse</option>
<option value="@{RangedAT}">Ranged</option>
</select>
<select name="attr_weapondamage" class="sheet-no-border sheet-damage">
<option value="1d2" >1d2</option>
<option value="1d4">1d4</option>
<option value="1d6" selected>1d6</option>
<option value="1d8" >1d8</option>
<option value="1d10">1d10</option>
</select>
<input type="number" name="attr_attackbonus" class="sheet-no-border sheet-attackbonus" value="0">
<input type="text" name="attr_damagebonus" class="sheet-no-border sheet-attackbonus" value="0">
<input type="text" name="attr_shortrange" class="sheet-no-border sheet-tiny">
<input type="text" name="attr_mediumrange" class="sheet-no-border sheet-tiny">
<input type="text" name="attr_longrange" class="sheet-no-border sheet-tiny">
<select name="attr_focus" class="sheet-no-border sheet-tiny">
<option value="0" selected>No</option>
<option value="1">Yes</option>
</select>
<input type="text" name="attr_multiplier" class="sheet-no-border sheet-attackbonus" value="1">
<button class="sheet-attack-button" type="roll" value="&{template:acks_template} {{name=@{weaponname}}} {{attackroll=[[1d20+(@{attackbonus})+(?{Modifier|0})-@{weapontype}]]}} {{damageroll=[[(@{multiplier}*(@{weapondamage}))+@{damagebonus}]]}} {{critdamageroll=[[((@{multiplier}+@{focus})*(@{weapondamage}))+@{damagebonus}]]}}" name="roll_Attack"></button>
<textarea spellcheck="false" name="attr_weapondescription" class="sheet-bottom-line sheet-retainer-description" placeholder="Description"></textarea>
</div>
</fieldset>