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

Toggling Buffs

1532035208

Edited 1532035230
MyRoll20Stuffs
API Scripter
Is there a way with an existing API script (CharSetAttr possibly?) or some other way to toggle a buff on / off within a macro? If I mouse over the checkbox it says @{repeating_buff2_$X_enable_toggle} can I toggle it on / off with CharSetAttr or another existing API script when you know the buff # to reference like for instance in my case repeating_buff2_$0_enable_toggle? If you can do it with CharSetAttr what is the syntax to do this?
I figured out how to do it with CharSetAttr !setattr --charid -LHdrgIQKtoO-4rrAgMi --repeating_buff2_$0_enable_toggle|1
1532035830
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, the syntax will vary from sheet to sheet of course.
1532037958

Edited 1532037971
MyRoll20Stuffs
API Scripter
keithcurtis said: Yeah, the syntax will vary from sheet to sheet of course. Yep I know! Using Pathfinder Community Sheet hence why I posted the syntax as such. I have a really bad habit of asking a questions then searching for an answer and while waiting for replies find the solution by searching/reading around different sites. I need to tattoo "Google It First" on the backs of my hands.
1532050136

Edited 1532055980
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Without interrupting your current process, are you able to load the game in a different browser or different window, or better yet, on a different computer? That would be a good indicator if the stuck window can be terminated.
keithcurtis said: Without interrupting your current process, are you able to load the game in a different browser or different window, or better yet, on a different computer? That would be a good indicator if the stuck window can be terminated. Was this meant to be a reply to a different thread? I don't understand what you mean.
1532055967
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Derp. Yes. Ignore the man behind the curtain.