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 chill this holiday season!
Create a free account

A little help please

so after lots of googling and reading of the forums i was able to make this macro. works just fine as for as i can tell. How do i add a multiplier so that i can specfify the amount of potions i want so i dont have to click on the macro too many times? &{template:default} {{name=Potion}} {{Drinks=?{Potion Applied?|Potion of Healing, Potion of Healing for [[2d4+2]] HP |Potion of Greater Healing, Potion of Greater Healing [[4d4+4]] HP |Potion of Superior Healing, Potion of Superior Healing [[8d4+8]] HP |Potion of Supreme Healing, Potion of Supreme Healing [[10d4+20]] HP}}}
1515483761

Edited 1515483845
vÍnce
Pro
Sheet Author
&{template:default} {{name=Potion}} {{Drinks=?{Potion Applied?|Potion of Healing, Potion of Healing for [[ [[2d4+2]]*?{How many potions?|1} ]] HP |Potion of Greater Healing, Potion of Greater Healing [[ [[4d4+4]]*?{How many potions?|1} ]] HP |Potion of Superior Healing, Potion of Superior Healing [[8d4+8]] HP |Potion of Supreme Healing, Potion of Supreme Healing [[ [[10d4+20]]*?{How many potions?|1} ]] HP}}}
1515495661

Edited 1515495839
To avoid using HTML entities, you could also use a macro like this: &{template:default} {{name=Potion}} {{Drinks=?{Number of Potions?|1} Potion(s) of ?{Potion Applied?| Potion of Healing, [Healing](2) | Potion of Greater Healing, [Greater Healing](4) | Potion of Superior Healing, [Superior Healing](8) | Potion of Supreme Healing, [Supreme Healing](10) } [[ [[?{Number of Potions?} * ?{Potion Applied?} + {0}]]d4 + [[?{Number of Potions?} * ?{Potion Applied?} * {[[?{Potion Applied?} + {0}]], 10}=10]] ]] HP }}
1515515590
vÍnce
Pro
Sheet Author
I envy your ability to do that Silvyre.  :-P  
Haha!
1515517993
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have beat my head against the wall trying to get complex nesting to work time and again, only to discover a Silvyre solution. The world would be a merry old place indeed if we could have macros that don't need this sort of substitution. Thanks, Silvyre!
thanks a lot for the help guys. as always it is much appreciated :-)