I have a field and a button. The button uses the value of the field to perform some calculations. I'd like to use ChatSetAttr to update the value of the field, then trigger the action button. However when I try this, the !setattr command never seems to be triggered. Code: <input type="number" placeholder="Damage" name="attr_armordamage" />
<button type="action" name="act_armorapplydamage">Apply Damage</button>
What I've tried: Setting the value of the `armordamage` field works great: !setattr --nocreate --name Sam Smith --armordamage|15 Triggering the action button works great: %{Sam Smith|armorapplydamage} If I combine them like this, the button gets triggered but the field never gets updated: !setattr --nocreate --name Sam Smith --armordamage|15
%{Sam Smith|armorapplydamage} If I try to inline the `!setattr` call, the same thing happens. The button gets triggered but the field never gets updated: &{template:custom} !setattr --name Sam Smith --armordamage|15 !!! {{Sam Smith=%{Sam Smith|armorapplydamage}}} How do I combine them into a single macro?