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

Trying to get a smite macro to work

1725667929

Edited 1725668179
I have a smite macro that i have pilfered from somewhere, and it works great since it even shows what level of spell slot i am using, but i cant for the life of me understand how to add critical mod for it ,to double the dice &{template:default} {{name=Divine Smite (Level ?{Spell slot level|1|2|3|4|5|6|7|8|9}) ?{Undead/fiend target|No, |Yes, [``Undead/fiend target``](+1)} }} {{[[ [[1 + {?{Spell slot level}, 4}kl1 + ?{Undead/fiend target}]]d8 ]] radiant damage }} when i add * if modifier to try doubling the dice it bricks the rest of the code
1725669401
GiGs
Pro
Sheet Author
API Scripter
&{template:default} {{name=Divine Smite (Level ?{Spell slot level|1|2|3|4|5|6|7|8|9}) ?{Undead/fiend target|No, |Yes, [``Undead/fiend target``](+1)} }} {{[[ [[ ?{Critical?|Yes,2|No,1} * (1 + {?{Spell slot level}, 4}kl1 + ?{Undead/fiend target|0})]]d8 ]] radiant damage }} I'm not up on the specific rules you are using, but if you double all the dice on a critical something like this will work. I added a default 0 to undead/fiend target - you might want a yes/no prompt, or a prompt for the damage bonus: the critical query should guide you there.
1725702773

Edited 1725705351
Thanks, crit works now but it became a 1d8 instead of a 2d8 now on base :D Not sure where it went, if i remove the undead querry all together it becomes a 2d8 again *edit actualy every spell levels a d8 now)
Made some small edits to it, it should work now: &{template:default} {{name=Divine Smite (Level ?{Spell slot level|1|2|3|4|5|6|7|8|9}) ?{Undead/fiend target|No, |Yes, [``Undead/fiend target``]+1} }} {{[[ [[ ?{Critical?|Yes,2|No,1} * (1 + {?{Spell slot level}, 4}kl1 ?{Undead/fiend target})]]d8 ]] radiant damage }} (I removed the parentheses around the undead/fiend bonus, and the plus from the actual roll calc, since it's already in the bonus.)
Thank you seems to work perfectly now
Alternatively if you're using the 'D&amp;D (2014)' character sheet (formerly called 'D&amp;D 5E by Roll20' or '5E OGL' then you can use the attack roll itself from the sheet: <a href="https://app.roll20.net/forum/permalink/9818427/" rel="nofollow">https://app.roll20.net/forum/permalink/9818427/</a> %{selected|repeating_attack_$0_attack} ?{Divine Smite?| No,! | 1st,{{r1=[[2d8 + &amp;#63;{Fiend or Undead?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1d8&amp;#125;]]&amp;#125;&amp;#125;| 2nd,{{r1=[[3d8 + &amp;#63;{Fiend or Undead?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1d8&amp;#125;]]&amp;#125;&amp;#125;| 3rd,{{r1=[[4d8 + &amp;#63;{Fiend or Undead?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1d8&amp;#125;]]&amp;#125;&amp;#125;} &amp;{template:simple} {{rname=Divine Smite}}&nbsp; {{normal=1}} {{charname=Radiant}} Or just put the smite damage into a global damage modifier, or into the attack itself. ?{Divine Smite?| Yes,[[?{Spellslot level?&amp;#124;1st&amp;#44;2&amp;#124;2nd&amp;#44;3&amp;#124;3rd&amp;#44;4&amp;#124;4th&amp;#44;5&amp;#124;5th&amp;#44;5&amp;#125;+?{Undead?&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;1&amp;#125;]]d8| No,0} The benefit of putting this directly on the weapon attack is you don't need to ask if it is a critical hit or not; it will be calculated &amp; added automatically on a critical hit.
1725740309

Edited 1725740873
I'm playing a paladin myself (with the 5e by Roll20 2014 sheet), and my own approach is a bit more elaborate: in the weapon description, I have the following: }} {{rname=[@{repeating_attack_$0_atkname}](~@{character_name}|w0dmg) [SMITE](~@{character_name}|w0SMITEdmg)}} {{rnamec=[@{repeating_attack_$0_atkname}](~@{character_name}|w0crit) [SMITE!](~@{character_name}|w0SMITEcrit" style=" color: green) And then for each weapon I have four abilities set up, for normal attack and for smiting, with critical versions of both: w0dmg &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[@{repeating_attack_$0_dmgbase}+@{repeating_attack_$0_dmgattr}+@{repeating_attack_$0_atkmagic}]]}} {{dmg1type=@{repeating_attack_$0_dmgtype}}} {{globaldamage= [[1d8[Improved Divine Smite]+@{global_damage_mod_roll}]]}} {{globaldamagetype=Radiant}} w0crit &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1flag=1}} {{dmg1=[[@{repeating_attack_$0_dmgbase}+@{repeating_attack_$0_dmgattr}+@{repeating_attack_$0_atkmagic}]]}} {{crit=1}} {{crit1=[[@{repeating_attack_$0_dmgbase}]]}} {{dmg1type=@{repeating_attack_$0_dmgtype}}} {{globaldamagecrit=[[1d8[Improved Divine Smite]+@{global_damage_mod_roll}]]}} {{globaldamage= [[1d8[Improved Divine Smite]+@{global_damage_mod_roll}]]}} {{globaldamagetype=Radiant}} w0SMITEdmg &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[@{repeating_attack_$0_dmgbase}+@{repeating_attack_$0_dmgattr}+@{repeating_attack_$0_atkmagic}]]}} {{dmg1type=@{repeating_attack_$0_dmgtype}}} {{globaldamage= [[[[2+?{Smite!|level 1,1|level 2,2|level 3,3|level 4,4}]]d8[Level $[[2]] SMITE]+@{global_damage_mod_roll}]]}} {{globaldamagetype=Radiant}}[[ [[?{Smite!}]] ]] w0SMITEcrit &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[@{repeating_attack_$0_dmgbase}+@{repeating_attack_$0_dmgattr}+@{repeating_attack_$0_atkmagic}]]}} {{crit=1}} {{crit1=[[@{repeating_attack_$0_dmgbase}]]}} {{dmg1type=@{repeating_attack_$0_dmgtype}}} {{globaldamagecrit=[[[[2+?{Smite!|level 1,1|level 2,2|level 3,3|level 4,4}]]d8[Level $[[4]] SMITE]+@{global_damage_mod_roll}]]}} {{globaldamage= [[[[2+?{Smite!}]]d8[Level $[[6]] SMITE]+@{global_damage_mod_roll}]]}} {{globaldamagetype=Radiant}}[[ [[?{Smite!}]] ]] [[ [[?{Smite!}]] ]] With the same setup for every weapon, except incrementing the repeating attack index to match the position of the weapon on the attack list. This way I don't have to answer queries every time I attack, only when I decide to smite. Notes, I did not include the fiend/undead bonus damage in this, but it'd be easy enough to include, and because I made this for a higher level character, Improved Divine Smite is included. What this does, is when I use the attack, the attack will have two buttons for damage, one for normal attack damage, and one for attack damage with smiting damage included.
1725741030

Edited 1725741086
Gauss
Forum Champion
I have a similar setup for my players with the Playtest/2024 Smite spells. Buttons on their Attacks link to a Smite spell list, they press the spell they want, the spell fires. For the Divine Smite spell (what Smite became) it displays regular, fiend/undead, and then critical versions of those.&nbsp; They are mentally added together as needed. But for those who don't like that method they can be put together as queries, or as Tuo has set up via Chat Menu buttons.&nbsp;
1725752246

Edited 1725752468
Im using the 2024 sheet that seems to not show some templates and the default one seems to disapear if i reload the page, wanted to make smiting a bit easier on myself so im thankfull for&nbsp; the sugestions , is there a way to make a macro use a weapon thats in my inventory ? The new 2024 inteface seems a bit jank, would be nice to roll the weapon atack+damage without going to my char sheet all the time, have it react to using advantage/disadvantage
The 2024 sheet is still in a Beta release, which is why a lot of features aren’t included or don’t work correctly.&nbsp;
1725761105

Edited 1725761375
If the Candela Obscura by Roll20 sheet, built with the same tech, is any indication, I wouldn't hold much hope for macros with the 2024 sheet. It fights tooth and nail against access to attributes and templates. (This is objectively bad.)