What am I doing wrong here?
<input type="number" name="str" value="7">
<input type="number" name="str_mod" value="@{str}/2" disabled="true">
What am I doing wrong here?
<input type="number" name="str" value="7">
<input type="number" name="str_mod" value="@{str}/2" disabled="true">
Names need to start with attr_ for one.
<input type="number" name="attr_str" value="7">
<input type="number" name="attr_str_mod" value="@{str}/2" disabled="true">
Also, if you want the mat to round up or down, you'd need to use either ceil or floor functions in the equation... Can't get the exact syntax at the moment, but the wiki will have it.
I misunderstood the instructions in the wiki - I did't use attr_ , I thought that was meant for actual "attritutes", didnt realize every input had to have that prefix.
thanks - it works in the roll20 but not the preview, so there were a few things going on
I wasntreally concerned with calculating - I couldnt even get the second field to even *copy* the first field.
Looks like what I need is a sheetworker, anyway - the second field only updates when i leave the first input field. I want the second field to update every time you adjust the spinner controls...
CyborgPrime said:
Looks like what I need is a sheetworker, anyway - the second field only updates when i leave the first input field. I want the second field to update every time you adjust the spinner controls...
I think this is a roll20 limitation - a sheetworker wont fire either until you leave the input field.
GiGs said:
CyborgPrime said:
Looks like what I need is a sheetworker, anyway - the second field only updates when i leave the first input field. I want the second field to update every time you adjust the spinner controls...
I think this is a roll20 limitation - a sheetworker wont fire either until you leave the input field.
Yep, the attribute isn't actually changed until you leave the field or press enter. The one exception to this is number entry spinners I believe.