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

Elemental Adept Macro

I spent some time searching for a macro to treat 1's as 2's and couldn't find anything outside a character sheet or script so I took a few hours to create this beauty. {8d6+8d2r<1}kh8 You can easily add queries for number of dice and dice type. {?{ Dice  Number|1}?{Dice Type|d4|d6|d8|d10|d12|d20}+ ?{ Dice Number } d2r<1}kh ?{ Dice Number } Enjoy. If you can think of a better way to create a variable size list of 2's, tell me.
You could create a rollable table with the values 2-8. Each of the items in the table would have a weight a 1 except for the 2 which has a weight of 2 (this is to signify that a 1 counts as a 2 for elemental adept).  Then inside you macro you can use [[8t[ElemAdept]]] to get the correct values.
1502987785

Edited 1502988021
A player would have to ask the DM to make a table for each dice type and tables can't be copy-pasted. This is intended to be DM and campaign independent. I would recommend inline rolls due to the reroll spam.
That's actually really clever. I never thought of handling it that way.
You are a wizard and a cleric. I was just looking for this type of formula, and it's working flawlessly. I've done a little extra tweaking to it to make it work for cantrips in the 5eOGL character sheet, which already include a formula to calculate the number of damage dice based on your level. Your formula, modified to use X and Y variables for any situation {XdY+Xd2r<1}khX The cantrip formula in the 5eOGL sheet [[round((@{level} + 1) / 6 + 0.5)]] The combined formula, change Y as needed depending on the cantrip {[[round((@{level} + 1) / 6 + 0.5)]]dY+[[round((@{level} + 1) / 6 + 0.5)]]d2r<1}kh[[round((@{level} + 1) / 6 + 0.5)]] It is working \o/ character level 1 character level 15
I also found a way to simulate a Rogue's Reliable Talent feature based on your formula {1d20+{0d0+10}}kh1 or  {1d20,0d0+10}kh1 could be useful, though the 0d0 part looks a bit wonky when it gets rolled.
1503127169
Andrew C
Marketplace Creator
Evan D. said: I spent some time searching for a macro to treat 1's as 2's and couldn't find anything outside a character sheet or script so I took a few hours to create this beauty. {8d6+8d2r<1}kh8 You can easily add queries for number of dice and dice type. {?{ Dice  Number|1}?{Dice Type|d4|d6|d8|d10|d12|d20}+ ?{ Dice Number } d2r<1}kh ?{ Dice Number } Enjoy. If you can think of a better way to create a variable size list of 2's, tell me. I saw this before, and only just looked at it again... very elegant.
1503127222
Andrew C
Marketplace Creator
Caelen said: I also found a way to simulate a Rogue's Reliable Talent feature based on your formula {1d20+{0d0+10}}kh1 or  {1d20,0d0+10}kh1 could be useful, though the 0d0 part looks a bit wonky when it gets rolled. Try 0d1 then. It might parse better and always give you a "0"
Andrew (Halfling Gypsy) said: Try 0d1 then. It might parse better and always give you a "0" 0d1 didn't give me a "0", but 1d0 did, thanks!