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 .
×

Have a button roll dice AND trigger a sheetworker?

Hi all, I'd like to have a button on my custom sheet that does both of: rolling a die and give the result in the chat; trigger a sheetworker. Basically, I want characters to have a dice supply they can spend (it is actually represented by an attribitute). When a player roll one of these dice, it is removed from the supply (making the attribute decrease by one). Is there a way to do something like this? Thanks!
1586163743

Edited 1586163765
GiGs
Pro
Sheet Author
API Scripter
This isnt actually possible, unfortunately. Action buttons alter attributes, and Roll buttons print to chat, and there's no way to combine them. If your sheet is just going to be used by you and your group, you could build an API script to accomplish what you need to do (or use an existing one like ammo), and use a roll button to trigger the api script.
OK, thanks for the answer! I'll look into API script.