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

Another Divine Smite Question 5e

I'm Trying to make a macro for divine smite within an attack that queries spell level, undead/fiend, and crit so far I have:  (?{Spell Level?|1st,2|2nd,3|3rd,4|4th,5|5th,5}d8+?{Undead or Fiend?|Yes,1|No,0}d8)*?{Critical Hit?|Yes,2|No,1} Which so far allows me to pick the spell level then add if it's undead or fiend and at the end will *2 the resulting rolls, what I'm trying to find is instead of doing that having the crit roll double the dice. Right now it does: Spell Level 1 + Undead (2d8+1d8)*2, but I'm more looking for it to (2d8+1d8)+(2d8+1d8) if it crits, I'm pretty new to doing all this, but couldn't find any answers to my specific question. I'm using the 5th Edition OGL Character Sheets
Move where the crit comes into the formula. Essentially put the *2 before d8 [[ [[(?{Spell Level|1st,2|2nd,3|3rd,4|4th,5|5th,6} + ?{Undead or Fiend|Yes,1|No,0})*?{Critical Hit|Yes,2|No,1}]]d8]]
1526916409

Edited 1526916631
Thanks! I ended up with: [[(?{Spell Level|1st,2|2nd,3|3rd,4|4th,5|5th,5}+?{Undead or Fiend|No,0|Yes,1})*?{Critical Hit|No,1|Yes,2}]]d8
1526926670

Edited 1526927013
Dj, I think you missed a set of double brackets ( [[ - ]] ) on your macro.&nbsp; Other than that, I like that you put the "No" arguments first so that they are the default answer.&nbsp;&nbsp; Copied this for my games.&nbsp; A little tip - a nice place to put this is in the "Features and Traits" section (if using the OGL 5e sheet).&nbsp; If the player clicks on the little speech bubble for their Divine Smite, it sends the description - which can include this macro - to chat.&nbsp; Helps keep the attack section uncluttered. Edit: Someone on this forum posted a similar macro that also utilized the ammo tracking feature to subtract the spell slot at the same time.&nbsp; Not sure where that was. Edit2: Found it, but I was mistaken - they could not get it to work with the API.&nbsp; Here it is.&nbsp; <a href="https://app.roll20.net/forum/post/6307993/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/6307993/slug%7D</a>
the double brackets didn't work where i put it,. the single double set fixed the issue, I made a smite attack and put the query macro in for the damage.