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

Hex Macro Toggle

Hello, Very terrible with Macros.  But basically I want to be able to toggle my global damage modifier on and off with a macro button depending on if I have Hex up or not.  I only have the one global damage macro.  Current effort: !setattr --silent --name Jack K. --repeating_damagemod_$0_global_damage_active_flag|1 I'm uncertain if the name field is correct, I'd like it to toggle on my character sheet (name: Ulyaoth the Unquenchable) regardless of if the token is selected so I don't have to worry about whether I've done that.  The above isn't working, and I'd really appreciate some help.
1585469372
GiGs
Pro
Sheet Author
API Scripter
Is your GM a pro subscriber and do they have the chatsetattr script installed?
GM is only a Plus subscriber.  Does that limit Macro options?  We are just getting into this so we didn't want to just buy the max subscription without really knowing if we'd make use of it.
1585492912
GiGs
Pro
Sheet Author
API Scripter
You need a Pro subscription to use API scripts, and anything which starts with an ! (like !setattr) is an API command. So you wont be able to use that command unless your GM upgrades. 
Is there a way to accomplish what I want without using API?  At the very least, glad that my playing around with it all wasn't just me being a complete idiot, and that I wasn't able to access that functionality.
The GM and I are in the same house, sorry, forgot I was logged in as GM account, same person though.
1585494918
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It does not matter, unfortunately. That particular field and several others are bugged on the D&D 5th Edition by Roll20 sheet, and cannot be set via API. Or more accurately, you can change the values, but they will not be recognized in the rolls. This has been reported numerous times over the last year or so, so it is unlikely to be fixed any time soon. :( There is a lame workaround I developed that you can find here. I created it for Rage damage, but the principle can be used for hex damage.
Thanks Keith, I had actually stolen the attempt from your thread helping AManImmortal with that.  Also good to know it was bugged anyway, I was about to buy the pro....haha.  Thanks for the workaround! Lame or not, I'm just trying to need to type less /r commands!
1585496020
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, I really, really wish that known bugs in the sheet were centrally listed and maintained in a searchable manner. Users waste hours trying to fix something they have no control over.
If your true goal is to cut down on the /r d6 inputs, why not just create an entry in Attacks and Spellcasting for Hex and then drag that down to your Macro bar? If you crit, just click it twice.
that was the current solution, but I guess also the goal was to have to do less button presses, and therefore math, also.