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

Changing a repeating resource through macros or API

Is there an easy way that I can have it so that when a player clicks one of their traits, a specific repeating resource gets depleted by a certain amount?
1653600599
Kraynic
Pro
Sheet Author
I use the ammo api for that sort of thing.  While I don't have it automatic, I set up an ability macro on the sheet that will reduce that resource, and then add a chat menu button to the description of that trait/feat.  That way, they can roll/display it in chat without automatically reducing the uses if it is just being put up for display for some reason, but it just takes one more click of a button that is already in chat to reduce that resource.