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

Making "strange" buttons

I know someone probably talked about this, but I can't seem to find it. Long story short, I'm trying to make a button that does 3 things, but I know know how to make it do one at a time. The button is supposed to roll an atack, and also spend a resource, and it would also be great to have it show up as a token macro (the ones that show up when the token is selected). What comes to mind is to have a macro, which triggers a sheetworker function (adjusting the number of the resource) which then also rolls the dice I know how to make the macro roll the dice, my problem is the gap from macro to sheetworker, or how to make a sheetworker roll a dice.
1588911784

Edited 1588911836
vÍnce
Pro
Sheet Author
Unfortunately, Roll20's sheetworkers cannot detect button pushes, so the only way to manipulate attribute data is either directly through a sheet's fields and/or using an API script.  You can use separate lines within the same macro to execute multiple commands.  So you might have a line for your attack and another that uses a script like Ammo or ChatsetAttr to modify an attribute.  Some sheet's have a companion script that can handle these types of things using a single script.  If there isn't a specific script created for your particular sheet, you can most likely mix/match API scripts as needed to make this work.  What sheet are you using?