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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Nesting macro within macro - help getting started

I’ve tried to work out how to nest a macro within a macro but the wiki example does not seem to work (or it makes no sense and in doing it wrong)  either way it was no help at all (and I’m not that bad at macro) I also tried reading other nested macro answers in this forum - but I’m missing the very basic “how to get started on nesting” so I can’t work out what they are doing - basically I’m missing the 1st trick. So if I had the following options macro below to pick healing potions types and roll the relevant healing amount  - and I had a bunch of separate macro for each potion type (let’s call the 1st one “potion-of-healing”) instead of putting the [[4d4+4]] or [[8d4+8]] etc in the main macro below - how would I insert a call up for the separate macro for say the standard “ potion-of-healing” to roll the healing basically swop out the [[4d4+4]] calculation for what ????? That would run the “potion-of-healing” macro instead. ————-—————- {template:default} {{potion taken= ?{Potion of|  Healing, **Potion of Healing** [[2d4+2]]|  Greater Healing, **Potion of Greater Healing** [[4d4+4]]|  Superior Healing, **Potion of Superior Healing** [[8d4+8]]|  Supreme Healing, **Potion of Supreme Healing** [[10d4+20]]}}} ——————————— note- the real macro does not have “Returns” creating separate lines - I just spaced the out for clarity in this example also the real macro I want to create is something different - I just used the healing potions options macro as it was clearer.
It’ll be much more helpful if you post the actual macro you’re creating and what you want it to do.  When you nest macros, all of the nested macros have to use html replacements for control characters: } | and ,.