
Hi all!
I'm hoping someone can help me troubleshoot an issue I'm having with trying to set an attribute via ChatSetAttr.
I have a variable, AP, defined as:
<span class="text">AP</span>
<span class="curr"><input type="number" name="attr_ap"></span>
<span class="max">MAX:
<span name="attr_ap_max" ></span>
<input type="hidden" value="0" name="attr_ap_max" readonly>
</span>
I'm trying to use ChatSetAttr to send a message in chat and increment the value by 1 with the following:
&{template:default} {{name=AP Test}} !setattr --name @{character_name} --ap|{{Recharge AP=[[@{ap}+1]]}}!!! {{desc=@{character_name} steadies themselves.}}
I get a message stating the value should be be 1, but it remains 0:
I'm suspecting the initial value isn't being read, but even when setting a value, it continues to set it to 0. Anyone have any idea what I'm doing wrong?