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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Spell drop down Macro help. (D&D 5e)

So I have always wanted to make a drop down macro that would be able to give you a list of your spells and ask for the level you casted it at. For example, this is a macro I have been trying to edit with HTML to make it work that way. ?{Did you cast a Smite Spell? |No, |Yes - Searing Smite, [[(?{Level|1})d6]] Fire damage [[(?{Level|1})d6]] Additional if crit /w GM On a failed Constitution save target takes 1d6 fire damage at the start of each of its turns until the spell ends. Creatures can use an action to douse the flames or submerge themselves in water to end the effect. |Yes - Thunderous Smite, [[(1+?{Level|1})d6]] Thunder damage [[(1+?{Level|1})d6]] Additional if crit /w GM On a failed strength save the target is pushed 10 feet away from you and knocked prone. |Yes - Wrathful Smite, [[(?{Level|1})d6]] Psychic damage [[(?{Level|1})d6]] Additional if crit /w GM On a failed Wisdom save the target is frightened until the spell ends. The target can use an action to make a Wisdom CHECK against your spell save DC to end the spell. |Yes - Branding Smite, [[(?{Level|2})d6]] Radiant damage [[(?{Level|2})d6]] Additional if crit /w GM If hit the target is now visible if it was invisible, cannot become invisible until the spell ends, and sheds 5 feet of dim light. |Yes - Blinding Smite, [[(?{Level|3})d8]] Radiant damage [[(?{Level|3})d8]] Additional if crit /w GM On a failed Constitution save the creature is blinded until the spell ends. A creature makes another Constitution save at the end of each of its turns, on a successful save it is no longer blinded. |Yes - Staggering Smite, [[({Level|4})d6]] Psychic damage [[({Level|4})d6]] Additional if crit /w GM On a failed Wisdom save the target has disadvantage on attack rolls and ability checks, and can't take reactions until the end of its next turn. |Yes - Banishing Smite, [[({Level|5})d10]] Force damage [[({Level|5})d10]] Additional if crit /w GM If this attack drops the target to 50 HP or lower they are banished to another plane. If they are native to another plane than the one you are on the target returns to its home plane. If they are native to the plane you are on they go to a harmless demiplane. While there the target is incapacitated and remains there until the spell ends then reappears in the space it left or nearest unoccupied space if their original space is occupied.} Any tips that could make this possible without using templates? 
1505328057

Edited 1505328118
Each instance of ?{Level|X} will need to have the '|' and '}' replaced with '|' and '}'. So ?{Level|X} Also in order to get the whisper to send to the gm properly you will need to put 
 in front of it. So 
/w GM description
Thank you, Kyle! The whispers seem to work fine without the  
 though. Putting that in seemed to stop it from working.
Hmm, maybe that's because you already have the whispers on separate lines that you are able to get around not have the HTML encoded new line (that's the 
) Did the HTML encoded Level queries work?
Yes! They worked perfectly thank you for the help.