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

Macro to determine amount of dice being rolled?

Is there anyway to use a macro/nested macro to determine how many die are being cast? For instance in DND next you can cast a cleric spell as a higher level and gain additional dice rolls. What i have know looks like this: #Spell-Level = [[?{Spell Level?|1}]] /me Casts Cure Wounds as level #Spell-Level spell. ?{Target?|0} is healed for [[(#Spell-Level*2)d8+2+#Spell-Level]] Everything else I've tried calculates the d8 and the #Spell-Level separately. Thanks for any help you can provide.
1389269755

Edited 1389269860
it seems, you're trying to set up a variable, and call it twice, i don't know if that's possible, in the mean time you can try this.. /me Cast Cure Wounds [[?{Number of Dice|1}d8+2+?{Heal bonus|1}]] let me know how that worked for you =) EDIT: Further you can set that as up #Cure-Wounds, so you'd only need to recall that macro instead of doing the whole thing
1389270998

Edited 1389271132
Gauss
Forum Champion
You can call a query (variable) multiple times but you cannot put inline rolls inside each other. I would get rid of the inline roll brackets in #Spell-Level. The query will work fine without them.
Khaoz, thanks that worked perfectly! =D
Arkarian, I just noticed that, with Rugged Reroll, there was a better way to do the roll you wanted if i may, /me Cast Cure Wounds as level ?{Spell Level|1} spell, @{target|token_name} is healed for [[(?{Spell Level}*2)d8+2+?{Spell Level}]] I hope that you get to see this =)