Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[Help] Set Attribute with Button?

I'd like to have a button on my character sheet that sets a value to a known constant. I tried this: button type="roll" value='{{CombatPool2=0}}' name='reset' but it doesn't reset CombatPool2 to 0. It seems like this should be possible, I just cannot seem to figure out the syntax. Thanks!
1456346794
vÍnce
Pro
Sheet Author
I think buttons will only work for rolls on roll20. ;-( There's probably a much easier method, but... maybe use a checkbox or radio buttons for this and set up a boolean function. reset checkbox <input type="checkbox" name="attr_reset" value="1" /> or perhaps a couple radio buttons Total <input type="radio" name="attr_reset" value="1" checked/> <input type="radio" name="attr_reset" value="0" /> Reset You would need to introduce another attribute for user input <input type="number" name="CombatPool2-value" value="0" /> Then you could multiply another attribute's value by @{reset} <input type="number" name="CombatPool2" value="( (@{CombatPool2-value})*@{reset} )" />