
Ok so short version i'm trying to figure out how to use an attribute as both the default value and max value for a number field.
Here is the html for the value I'm calling:
<input type="number" class="field-edg transparent" name="attr_edg" title="@{edg}" value="1" min="1" max="6">
Here is the html for the section I'm trying to configure:
<input type="number" class="field-edge-points font-name transparent" title="@{edge-points}" name="attr_edge-points" value="@{edg}" min="0" max="@{edg}" >
Ideally the default state would be the value set for "@{edg}" and it would be the max value for the number field, the user should be able to increment it down to 0.
Long term I'd like a button that resets it to the start value, and a function that send a message from the player to the chat log when incremented down. I feel that the first of those is easier than the latter but i have no idea how to do either at this point so first things first. Need to get the counter working correctly.
Thanks