
Original button code:
The reference doesn't work as it doesn't have the name. Is there a way to get the name in there or make it work in another way?
<button type="roll" class="sheet-roll" name="roll_MeleeAttack1" value="@{output_option} &{template:5eDefault} {{weapon=1}} {{title=@{meleeweaponname1}}} {{subheader=@{character_name}}} {{subheaderright=Melee attack}} {{attack=[[d20cs>@{meleeweaponcritrange1} + @{meleetohit1} + (@{global_melee_attack_bonus}) ]]}} {{attackadv=[[d20cs>@{meleeweaponcritrange1} + @{meleetohit1} + (@{global_melee_attack_bonus}) ]]}} {{damage=[[@{meleedmg1} + @{meleedmgbonus1} + (@{global_melee_damage_bonus}) + 0d0]] @{meleedmgtype1}}} {{critdamage=Additional [[@{meleecritdmg1}]] damage}} @{classactionmeleeweapon}}">Attack</button>Reference button code:
<button type="roll" class="sheet-roll" value="%{MeleeAttack1}">Attack</button>
The reference doesn't work as it doesn't have the name. Is there a way to get the name in there or make it work in another way?