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

Help with ChatSetAttr advantage toggle script for character ability macro

I need help to create an Ability macro script using ChatSetAttr for my players to toggle Roll Queries between Advantage/Normal/Disadvantage from "Show as Token Action" on the map vs having to switch it on the character sheet. Thanks!
I saw a few related posts and got the following to work for changing the toggle red for Advantage and Disadvantage as follows: Advantage : !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{advantage=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' Disadvantage : !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{disadvantage=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' The following works switching it to Normal but doesn't light the Normal toggle red for some reason -  Thoughts? !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{normal=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}'