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

Macro that rolls additional dice and then drops highest and lowest results

I'm working on a project with a friend of mine and we came up with an interesting system for rolling dice. The base roll is 3d6, however, a creature could have advantages and/or disadvantages on it. For each advantage, they'd roll an additional d6 and drop the lowest result. For each disadvantage, they'd roll an additional d6 and drop the highest result. i.e.: If a character has two instances of advantage and one of disadvantage, they would roll 6d6 (3 as the baseline, 2 for advantages and 1 for disadvantage) and then drop the 2 lowest results (adv.) and the highest one (disadv.). Meaning, if their dice rolls were     1, 2, 3, 4, 5, 6 They would drop the 1 and the 2 because of the advantages and the 6 because of the disadvantage, so their result would be     3 + 4 + 5 = 12 Is there a way to make a macro that would ask the player how many advantages and disadvantages they have on the roll and then roll accordingly?
This will do that /r {(3+?{Advantage|0}+?{Disadvantage|0})d6dl?{Advantage}}dh?{Disadvantage}
RainbowEncoder said: This will do that /r {(3+?{Advantage|0}+?{Disadvantage|0})d6dl?{Advantage}}dh?{Disadvantage} Thanks, that really helped.