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

Update attribute upon button click (roll)

The intended behavior is as follows: Players can push a roll from the rolltemplate like thus: But I also want the "Energy" to be expended. For example, each time they press the "Spirit Push" button, the Energy field is reduced by 1. I looked into using Sheetworkers as a solution, but the event listener only detects action buttons, whereas here I'm working with a roll button.  Is my desired functionality possible? Thanks!
1605317084
Andreas J.
Forum Champion
Sheet Author
Translator
Either you: create a separate action button to active it start using an API listener that activates when the roll is made integrate an API command into the roll to do it right away, such as ChatSetAttr .
Wow thanks @Andreas I would never have found that! And +1 for the community you guys are awesome, 2 Q/A in one day. Huge help.  P.S. the third option definitely sounds like the best.