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

Need macro help editing the Divine Smite macro

So I play in a 5e game as a paladin. I know of the paladin smite query macro, which is great, but I need to fix it to add something. We also use the homebrew Ancestral Weapons and my base Divine Smite has an extra 1d8 to it. So, instead of a basic Divine Smite 2d8, it's actually 3d8. The standard macro is: &{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}} &{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}} How do I change it so the base Divine Smite is 3d8 and still keep adding the queries etc.. Thanks for any help!
1662925491

Edited 1662925618
Gauss
Forum Champion
Katiepult said: So I play in a 5e game as a paladin. I know of the paladin smite query macro, which is great, but I need to fix it to add something. We also use the homebrew Ancestral Weapons and my base Divine Smite has an extra 1d8 to it. So, instead of a basic Divine Smite 2d8, it's actually 3d8. The standard macro is: &{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}} &{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}} How do I change it so the base Divine Smite is 3d8 and still keep adding the queries etc.. Thanks for any help! Change this section:  ?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} To this:  ?{Spellslot|1st lvl,3|2nd lvl,4|3rd lvl,5|4th lvl,6} Or just add a +1 afterwards. Like this:  ?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + 1
Will this still allow me to do the query and add a level 1 spell slot on top of that?
1662925660
Gauss
Forum Champion
Katiepult said: Will this still allow me to do the query and add a level 1 spell slot on top of that? It doesn't change the nature of the query at all, just adds 1 more dice to it.
perfect! I just tested it. You're amazing! Thank you
1662927125

Edited 1662927265
Hi there Katiepult, First I look at the macro you provided and I see there's a few things that looks weird to me. Like the dmg1 field (and a few others) appears twice? Here's how I would personally re-write it. EDIT: I see now it must be a double copy/paste, happens to the best of us ^.^ Your base macro, once corrected would look like this: &{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}} I do things slightly differently, I have all Class Features look the same way. Here's the full Divine Smite macro I use (per RAW, the spell slot can only provide 5D8, hence the "kl1" function in mine. Allows a lvl 5 spell slot can be used with Smite.): &{template:traits} {{name=Divine Smite}} {{source=Paladin Feature}} {{description=When you hit a creature with a melee weapon attack, you can expend one spell slot to deal [[[[({?{Spell slot lvl?|1, 2[lvl1]|2, 3[lvl2]|3, 4[lvl3]|4, 5[lvl4]|5, 6[lvl5]} ,5}kl1 + ?{Target is an Undead or a Fiend?|No, 0|Yes, 1[U/F]})?{Was the attack a Crit?|No, *1|Yes, *2[Crit]}]]D8]] *($[[0]]D8)* **Radiant** damage to the target, in addition to the weapon's damage.}} Now to get to the core of your issue, what's the exact wording of your feature? Does it increase the minimum number of dice per +1 (still limited by RAW)? Does it increase the maximum number of D8's (up to 7D8, compared to max 6D8 per RAW)? Depending on how it applies, you'd have to add the extra dice in a different place in your macro. EDIT: Gauss is a quick one lol.