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

Creating a macro with a Query to choose level for divine smite (5e)

Here is my issue: I wanted to have an option to have a macro for divine smite for a paladin. It would be 2d8, but have an option from that macro to add one more d8 if it is undead or something (by adding a second query prompt or for yes or no) . But also to have the option to set the level and it would automatically change the dice amount. I have tried to impliment the  | is replaced by | , is replaced by , and } is replaced by } with no luck. I've tried putting it in the "normal" formula ?{Name of Query|Option1|Option2}(etc.) with commas after each option to put in the dice amount: &{template:default} {{name=Divine Smite}} ?{Divine Smite| Level 1, **Level 1** Add an extra [[2d8]] damage | Level 2, **Level 2** [[3d8]] | Level 3, **Level 3** [[4d8]] } But for some reason I can't seem to figure out how to get it to be in the default template with the rolls being in the box like with &{template:default} {{name=Test Attack}} {{attack=[[1d20]]}} as well as I can't seem to figure out have to put in the second query for the undead stuff to add the aditional dice after the level and  Well, I don't have the money to get pro, so api is not available to me and I have tried many different ways to pull this off but I have come up empty handed, so I'm looking for some sort of help would be greatly appreciated because I have no idea what I am doing wrong.
Just need one query for the part in front of the d8. [[?{DivineSmite|Level 1,2|Level 2,3}d8]]
I don't really understand what you are trying to get across.
{{Divine Smite = Stuff}}
1492225788

Edited 1492226775
Snicksnork18 said: &{template:default} {{name=Divine Smite}} ?{Divine Smite| Level 1, **Level 1** Add an extra [[2d8]] damage | Level 2, **Level 2** [[3d8]] | Level 3, **Level 3** [[4d8]] } Your ?{Divine Smite} Roll Query is situated below the Roll Template instead of within one of its {{properties}}. In other words, it is outside of the Roll Template. Here's an example of a Divine Smite macro that has the two Roll Queries situated within the Roll Template: &{template:default} {{name=Divine Smite (Level ?{Spell slot level|1|2|3|4|5|6|7|8|9}) ?{Undead/fiend target|No, |Yes, [``vs. undead/fiend``](+1)} }} {{[[ [[1 + {?{Spell slot level}, 4}kl1 + ?{Undead/fiend target}]]d8 ]] radiant damage }} (Note how line breaks situated {{within}} Roll Template {{properties}} work well, but line breaks situated }}between{{ Roll Template properties will break the Roll Template.)
1492226007

Edited 1492226401
Thank you very much for the help!
You're very welcome! Happy rolling!
Testing it out really quick I just realized that the undead/fiends isn't working (adding the extra d8), how do u fix that?
1492226510

Edited 1492226787
Oops, try this one: &{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 }}
I really apreshiat the help!