
Hello, I have 2 text fields that the player can edit. When the roll-button is clicked, it should take the name they assign in the edit field and make it the name in the roll-template. Here is the code for the roll template I have <button class="sheet-button-roll" type="roll" value="&{template:default} {{name=@{combat_style_name} Attacks!}}
{{attack=[[1D20+@{combat_style_attribute}+@{combat_style_atk_bonus_cost}]]}} {{Damage=[[floor(@{combat_style_dmg_dice}+@{combat_style_dmg_bonus}+@{combat_style_dmg_attribute})*@{combat_style_dmg_mult}]]}} {{P+=[[@{combat_style_pen_plus}]]}} {{@{combat_style_dr_name_1}=[[10+@{combat_style_dr}]]}} {{@{combat_style_dr_name_2}= [[10+@{combat_style_dr_2}]]}}"><span style="font-size: small;"> Attack!<span></button>
Field Text code: <input class="sheet-inputfield sheet-blue-color sheet-center" name="attr_combat_style_dr_name_2 " value="DR 2"
style="width: 60px; font-size: smaller" title="Name your DR skills here" /> When the field is edited, the roll still has the old text.