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 .
×
May your rolls be chill this holiday season!
Create a free account

[D&D 5th OGL] Macro for AdvantageToggle?

Hey guys! i've noticed that in the D&D 5th OGL sheet there's an option to select if you want to always roll with advantage, or choosing if you want to roll, by always asking before a roll or creting buttons in your sheet. I've personally LOVED the buttons options, but that means that i've to keep my sheet opened all the time. Is there a macro that i can create that can set the value of the AdvantageToggle in my sheet, so i can do it straight from my macro bar? 
1568813196
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That would require the API. Macros cannot write to a sheet. I have a macro using ChatSetAttr that I used to use all the time before we decided to just always roll with advantage and take the first value if it was a normal roll.
keithcurtis said: That would require the API. Macros cannot write to a sheet. I have a macro using ChatSetAttr that I used to use all the time before we decided to just always roll with advantage and take the first value if it was a normal roll. I see! I thought this was exactly the case. We're planning on getting a pro account for our next campaing, but i guess i'll just keep the ask for advantage for now. And yeah, i used to always roll with advantage but i love the 3D dice, and they actually mislead me (i always looked for the better rolled dice but the actual roll was usually the lowest one), so i decided to make only one roll HAHAHAHA Thanks anyway for the help!
1568816536
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
When and if you do get an API-using account, here are macros I use. They toggle advantage, as well as putting a Status on the token (Green for advantage, red for disadvantage) Advantage !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{advantage=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' !token-mod --set statusmarkers|-red !token-mod --set statusmarkers|green Disadvantage !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{disadvantage=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' !token-mod --set statusmarkers|-green !token-mod --set statusmarkers|red Normal !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{normal=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' !token-mod --set statusmarkers|-red|-green
Can I check - Could I use something like this to globally change all NPC character sheets to 'query' advantage? - All in one go?