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

DND rations Macro

Hello, everyone. Now, here's my question: I'd like to have a macro that automatically deducts players' rations after a long rest period. I have to make the rations as an own resource to get an independent option in the character sheet. Is it possible to deduct it?
1597943614
Pat S.
Forum Champion
Sheet Author
Macro's can not affect the journals/sheets. You would need the API to do that. Take a look at the ammo API and see if you can repurpose it for your needs.
1597947500
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
ChatSetAttr can affect the resource count as well. If you already use any kind of a macro to handle long rests, you could add a ChatSetAttr command to decrement it. The script is available through One-Click on your API page.