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

New ChatSetAttr Glogal Damage Bonus work around

Workaround for Global Damage Bonus not working with ChatSetAttr and Sheetworkers on Roll20 sheet After following the above thread I found that the first time the Global damage toggle is called the weapon attack and damage fields were blank. With the flag set for the first time, go into each weapon and uncheck and check the attack and damage.  Run the script to toggle the flag off. From then on when you run the script the weapon info is no longer blank. I don't know the reason behind it but it seems that the chatsetattr call is loading alternative attack and damage for the weapons as well.
1590166422
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks! That odd behavior just appeared recently (and was reported), but not this workaround. I'll give it a shot.
1590169321
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It works! Hallelujah! It even persists after a refresh. Any new weapons added will need to be manually toggled once. I'd use a chatsetattr macro to toggle all of the attacks off and on, but it would also catch things not meant to be attacks.
1590169712
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have edited the first post in the linked thread above to reflect this new functionality and direct users here. Thanks again, Chris.
Nice this did work but I did notice when I toggled the Global damage with chatsetattr my attacks went from 6 to 4 instead of staying 6. So then I went back into each attack and uncheck then check the Proficient on each and that fixed it.
1593028722

Edited 1593029500
keithcurtis said: It works! Hallelujah! It even persists after a refresh. Any new weapons added will need to be manually toggled once. I'd use a chatsetattr macro to toggle all of the attacks off and on, but it would also catch things not meant to be attacks. To be clear, if you add a weapon after using chatsetattr to alter the global damage modifier, you need to go into the weapon and toggle the attack and damage off.  Do you need to do this during a specific state of the global modifier? Is this how it works?  Make sure global damage mod is off, add weapon, toggle attack and damage on and off for the weapon, run the chatsetattr command to set the global damage mod to off?  Does it matter if the global mod is off or on to start this process, and does it matter if I toggle it one way or the other (can I just have it off then use the chatsetattr to toggle it off?) I've got it working with existing weapons so far.  It doesn't seem to stick with new weapons regardless of the order I do things.  I don't remember the specific order I did it all when I first got it working. Edit- I see what's going wrong.  It works as intended but you must also toggle the proficiency or it will go away each time.