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

initiative with option to roll normal/advantage/disadvantage

I am trying to create a macro that will allow the initiative roll to be a bit more dynamic.  There are times where the player may have advantage or disadvantage on initiative.  There are these options for 3 separate macros Normal roll is {1d20} + @{selected|initiative_bonus} &{tracker} with advantage roll is {2d20KH1} + @{selected|initiative_bonus} &{tracker} with disadvantage roll is {2d20KL1} + @{selected|initiative_bonus} &{tracker} There is this that I am trying to modify to ask the type of roll.  This produces a result but not properly in the simple template and other visual issues. &{template:simple}{{?{Roll Type?|Normal,normal|Advantage,advantage|Disadvantage,disadvantage}=1}}{{r1=[[1d20+@{initiative_bonus}]]}} {{r2=[[1d20+@{initiative_bonus}]]}} &{tracker} Any suggestions as to what I am doing wrong.  I would greatly prefer the second solution as it produces only one macro button Thanks in advance
You can't have more than one &{tracker} command, as the last one will be used regardless of the higher roll. This should work: @{selected|wtype}&{template:simple} {{rname=@{selected|token_name}}} {{mod=@{selected|initiative_bonus}}} {{r1=[[?{Advantage?|Normal Roll,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}+@{selected|initiative_bonus}@{selected|pbd_safe}[INIT] &{tracker}]]}} {{normal=1}} @{selected|charname_output}
Thank you sir.  That works great.