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 .
×

Another Divine Smite Question

I have been at this for hours. I have read every thread I could find, copied and used bits of every post I could find that had an example, and I still am unable to get a result. Can someone please help me see what I need to change on this macro... &{template:dmg} {{rname=Divine Smite}} {{range=Melee}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ ((?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5|5th lvl,5} + ?{Undead/Fiend|No,0|Yes,1}) * ?{Crit|Yes,2|No,1})d8ro<2}} ]]}}  {{dmg1type=Necrotic}} {{desc=Smite Thy Foe}} I cannot tell you how appreciative I'll be. Thank you!
1574045004

Edited 1574047840
GiGs
Pro
Sheet Author
API Scripter
It would help to know what's going wrong (and which sheet youre using). I tested this with the default rolltemplate (just changing template:dmg to template:default)  and it seems to work fine. so the damage in dmg1 works properly. I dont know the other flags do.
Thank you! You'r einput plus finding a new example that showed me what I was missing. I got it now. &{template:5eDefault} {{title=Devine Smite }} {{subheader=@{Gadelha|character_name}}} {{subheaderright=Smite Thy Foe}}  {{rollname=Necrotic Dmg}} {{roll=[[ ((?{Spellslot|1st lvl,2|2nd lvl,3|3rd lvl,4|4th lvl,5|5th lvl,5} + ?{Undead/Fiend|No,0|Yes,1}) * ?{Crit|Yes,2|No,1})d8ro<2 ]]}}
1574047810
GiGs
Pro
Sheet Author
API Scripter
Great!