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

&{template:atk} help

Hey, I am trying to figure out the {{r1=[[1d20]]}} {{r2=[[1d20}} only if advantage or disadvatage is checked}} tags, and so far I am missing something, I know its something simple, I am just missing it. Also the crit damage and what not for the next part. I am setting up my own damage stuff for my wizard, and this would be incredibly helpful ^.^
1540608416

Edited 1540608448
figured it out ^.^  Here is the code for it. This will allow you to the toggle advantage, disadvantage in a macro for spells and weapons. @{selected|wtype}&{template:atkdmg} {{mod=}} {{rname=}} {{r1=[[@{selected|d20}+@{selected|spell_attack_bonus}]]}} @{selected|rtype}cs>20 + (@{selected|spell_attack_bonus})]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=}} {{dmg1type=}} {{dmg2=}}} {{dmg2type=}} {{crit1=}} {{crit2=}} 0 {{desc=}} Just edit the other stuff like dmg, and what not to make it look better ^>^
1540611008

Edited 1540611168
If I'm understanding your question correctly, you can also set the query roll type in the template within r1: {{normal=1}} {{r1=[[?{Advantage?| Normal, 1d20| Advantage, 2d20kh1| Disadvantage, 2d20kl1}]]}} This asks which type of roll you are making (normal, advantage, disadvantage)
thanks it is, there is another way to allow the toggle on the character sheet to do it also, I figured them both out. I will be posting all my macros I have made tonight when I am done with them ^.^