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 .
×
Create a free account

Button on Character Sheet to execute function?

I want to have a button for the player to click at the start of a new turn that will do some housekeeping, like add one field in a repeating section to another field and then zero out the first field.  It would only do this depending upon the state of some checkboxes that are also fields in the the repeating section.   The only way I can think of to do this is to have some control, like another checkbox, and hook up to its change event to do that housekeeping.  Is there a way to hook up a function to a regular button?  Or is there some better way than simply making the player click a checkbox?
1524628089
The Aaron
Pro
API Scripter
You've hit the nail on the head.  Make a checkbox and style it like a button, trigger a sheet worker on change.
Thanks!