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

Visualizing Advantage Roll Macros

Heya =D I made a macro which functions as a constant advantage roller for compression of queries, but am wondering how to make it visually display both rolls as if I had Toggled Advantage and then ran a hit roll Here is what I have so far which works only functionally (replacing kh1 w/ kl1 to swap between Adv and disadv) &{template:atk} {{mod=+5}} {{rname=[WeaponName](~-123456789_1234567|repeating_attack_-attack_macro)}} {{rnamec=[WeaponName](~-123456789_1234567|repeating_attack_-attack_macro_crit)}} {{r1=[[2d20cs>20kh1 + @{strength_mod} + @{pb}-5]]}} @{my_char_name|rtype}cs>20kh1 + @{strength_mod} + @{pb}-5}} {{range=5ft}} Any suggestions?
I've discovered the answer! In the D&D5E Character sheet within "Attributes and Abilities" Attributes tab, there lies an attribute called "rtype", which calls "@{advantagetoggle}", and that outputs 3 different things depending on whether you are toggled Advantage, Normal or Disadvantage: Adv: "{{query=1}} {{advantage=1}} {{r2=[[1d20" Norm: "{{query=1}} {{normal=1}} {{r2=[[0d20" Disadv: "{{query=1}} {{disadvantage=1}} {{r2=[[1d20" All 3 go into an attacks "@{your_char_name|rtype}cs>20..." attack to determine whether or not it outputs the roll in adv/norm/disadv mode. You can then go into a macro, and replace "@{your_char_name|rtype}" with "{{advantage=1}} {{r2=[[1d20" to force the roll into adv or disadv, or normal (I found that r2= can still be 1d20 even if running normal, so you can keep them all at r2=[[1d20) You can use this if you want to fancily roll advantages using query rolls to reduce the amount of queries you have to enter, if say you're running a macro that will end in either an attack being w/ advantage etc due to a selection you've made.