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

Starfinder Serum Macro

I have been trying to create a dropdown macro for use in my starfinder game. The problem as I see it is the {template:sf_generic} requires a {{r1name=}}and{{r1=}} input to display properly. I can do this for an individual Serum of Healing following: &{template:sf_generic}{{title=Serum of Healing}}{{r1name=Serum of Healing Mk I}}{{r1=[[1d8]]}} The problem I'm having is attempting to create a dropdown list {{?{Serum of Healing|Mk I, xxx|MK II,xxx| etc. You can't then input the {{r1name=}} and {{r1=}} because the macro doesn't like the additional ending curly brackets. I have tried looking this up but I can't figure it out. Any help? 
1622758463

Edited 1622758476
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You can html escape the ending brackets (e.g. }), however, I'd really recommend using a chat menu instead. If you do decide to do a roll query for this, I would highly recommend using a macro mule instead of a global macro because the global macro editor will eat the html replacements when you open it and resave it. Now, all that said, I think you can actually handle serums without needing to go quite so complicated: &{template:sf_generic}{{title=Serum of Healing Mk ?{Serum of Healing Mk|1|2|3}}}{{r1name=Serum of Healing Mk ?{Serum of Healing Mk}}}{{r1=[[ [[1+{?{Serum of Healing Mk},0}>2*2+{?{Serum of Healing Mk},0}>3*3]]d8]]}}