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

API for attribute editing macros?

As the topic says, is their an API script to allow for macros to edit attributes? I'd like to be able to let my Barbarian player make a macro that will activate rage for him, so he doesn't have to change the stats everytime.
1407857129
The Aaron
Roll20 Production Team
API Scripter
Sam mentioned one in this post: <a href="https://app.roll20.net/forum/post/1034445/help-api" rel="nofollow">https://app.roll20.net/forum/post/1034445/help-api</a>... Here's the GIST to his script: <a href="https://gist.github.com/Thequietcroc/c2fd1dcc46238" rel="nofollow">https://gist.github.com/Thequietcroc/c2fd1dcc46238</a>... It doesn't handle attributes with a space in the name, so be aware. It works off of a supplied token id. Setting Rage to 1: !setattr @{selected|token_id} Rage 1 Setting Rage to 0: !setattr @{selected|token_id} Rage 0 You can also get the token_id with @{selected|token_id} in the chat and use that above if you want to do it without having the token selected. There are some other useful operations, as well....