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

Apply advantage/disadvantage choice to initiative roll in a macro

I want to set up a couple different ability macros for use in Speed Factor initiative, all of which are some variation of "make the selected token roll initiative with x modifier." I can do that fine, the problem is there are definitely going to be cases where someone needs to make an initiative roll with advantage or disadvantage, and I'd really like some way for the macro's formula to do that automatically based on what a given player has selected on their character sheet for advantage toggle. Is there some way to take the results for r1 and r2 and add the higher or lower number to the turn tracker based on the toggle? Or some other way I could achieve this goal with minimal fiddling on the user's end?
In the 5e by Roll20 sheet, at least, Initiative is handled separately from the main Advantage toggle because the tracker don't work with multiple numbers. They get around this with their internal Initiative Style setting where it lets you set it at Advantage, Disadvantage, or Normal. Advantage rolls 2d20 and keeps the highest while disadvantage rolls 2d20 and drops the highest, thereby only posting one result which the tracker can handle.  In place of the d20 in the initiative calculation, you'd put @{<character name>|Initiative_style} That value is replaced by 1d20, 2d20kh1, or 2d20dh1 depending on the current sheet setting, so you'd input all of your bonuses with it.