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

Paladin 5e OGL Divine Smite damage roll

1584822836

Edited 1584834719
Hello everyone! I've been trying to make found a damage calculator for the paladin smite, out of bits and snips I found here as I s*ck at coding. I found this one that _almost_ worked as intended by user Kyle&nbsp; <a href="https://app.roll20.net/forum/permalink/5494237/" rel="nofollow">https://app.roll20.net/forum/permalink/5494237/</a> &nbsp; [[[[(?{Spellslot|1st lvl,1|2nd lvl,2|3rd lvl,3|4th lvl,4|5th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d6]] But I noticed there were a few mistakes (I think), about calculating the damage (smite is a d8 die, and for level 1 spell you get 2d8 not 1d8) so i changed it into [[[[(?{Spellslot|1st lvl, 2 |2nd lvl, 3 |3rd lvl, 4 |4th lvl, 5 |5th lvl, 6 } + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d 8 ]] But I can't really test if it is working properly and I would like to change the code so that it shows the value of each individual die in the results.... how can I do that? thanks in advance!
please someone help me out with is ^^ i still haven't figured out how to see the result of each roll :D
Here's a template I made for Paladin Smites: &amp;{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[?{What Spell Level?|1, 2d8|2, 3d8|3, 4d8|4, 5d8|5, 6d8}]]}} {{dmg1type=Radiant}} ?{Did it Crit?|No,|Yes, {{crit=1&amp;#125;&amp;#125; } {{dmg2flag=1}} {{dmg2=[[1d8]]}} {{dmg2type=If target is fiend or undead}} {{crit1=[[?{What Spell Level?|1, 2d8|2, 3d8|3, 4d8|4, 5d8|5, 6d8}]]}} {{crit2=[[1d8]]}} {{charname=&lt;fill in name&gt;}} It gives a separate roll of extra damage to add if the target is a fiend or undead, but it doesn't require the player to know when they roll (because sometimes they may not).
ty so much!!!
1589536968

Edited 1589537244
Oosh
Sheet Author
API Scripter
This may be surplus to requirements, but is kind of cool: If you add Dakota's macro above to your Paladin's character sheet as an Ability Macro (rather than a Collection Macro) and call it Smite, you can then make a small tweak to their weapon attack so they will be able to single-click to smite after they roll their damage. If you edit their weapon attack in the Attacks &amp; Spellcasting section, you can replace the weapon's damage type (Piercing in this example) with this: [Piercing](~Smite) It will turn the damage type at the bottom of the damage roll into a clickable button for Dakota's Smite macro. PS - pinching your macro Dakota, never occurred to me that you shouldn't necessarily know if your target is undead, I had a prompt in mine!
I never knew you could turn something like the damage type into an Ability Button. I'm gonna use that for a sorcerer that loves Booming Blade.
Folks, it's 2020, not 1998. We shouldn't need to be coding this at all. Roll20 would do well to get its act together and automatically populate Paladin character sheets with all of a Paladin's abilities (and that goes for other classes as well). Unless Roll20 is just waiting for D&amp;D Beyond to usher us into the actual 2020's with a slicker, more user-friendly version of online gaming.
Everyone has their own preferences for how things appear, so a "one size fits all" solution might not be that great. For example, I hate the Higher Level Casting display when casting a damaging spell with the built in method. I modify the base damage roll to query the spell level and put all the damage in one roll. I'm glad that I have a chance to expand my knowledge with how to create macros.
Dakota H. said: Here's a template I made for Paladin Smites... Just wanted to say, this was incredibly helpful and saved me some time on a day, when that was definitely needed. Many thanks!
Oosh said: This may be surplus to requirements, but is kind of cool: If you add Dakota's macro above to your Paladin's character sheet as an Ability Macro (rather than a Collection Macro) and call it Smite, you can then make a small tweak to their weapon attack so they will be able to single-click to smite after they roll their damage. If you edit their weapon attack in the Attacks &amp; Spellcasting section, you can replace the weapon's damage type (Piercing in this example) with this: [Piercing](~Smite) It will turn the damage type at the bottom of the damage roll into a clickable button for Dakota's Smite macro. PS - pinching your macro Dakota, never occurred to me that you shouldn't necessarily know if your target is undead, I had a prompt in mine! That's a brilliant idea, Oosh. However when I try to implement it, I get the below: I've tried different variations of the brackets and whatnot. Setting that macro as a global damage modifier is also an option, though I'm not sure how to call it there either (assuming you can). Did I miss something? -Agnati
You have to add the sheet name in there. [Piercing](~&lt;sheet name&gt;|Smite)
1597390228
Oosh
Sheet Author
API Scripter
The screenshot looks like it has (Label)(~Ability) ... you need [ Label ] (~Ability) - square brackets, then round.