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

ChatSetAttr script always mods instead of setting

I'm working with the excellent ChatSetSett script and I have a simple macro: !modattr --sel --Combat|20 As I understand it, that should set the Combat attribute to 20. Instead what is happening is that 20 is being added to the current Combat attribute, so if it is already 15 it becomes 35 instead of becoming 20. I don't have the --mod parameter in the command, so I don't understand why it's adding 20 instead of replacing the current value with 20. Does anyone know why I'm getting this behavior?
1525908794
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I believe the !modattr command sets it to as if you had used the --mod key. What if you use !setattr?
I'm sure you are right. Thanks!