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 .
×
Create a free account

Question on a macro with a "nested" question

1479159903

Edited 1479160123
Novice playing with the macro functionality; just trying the basics so I`m trying to run this as a Global macro** I understand the limitations on editing. Goal of this macro is to roll AOE damage based on 2 user input criteria.   #1- How many enemies we are attacking #2- How much Mana we are spending to modify the damage (+2DMG/Mana, Max 5 mana spent) For my proof of concept I am trying to roll based on hitting 2 enemies, with either 5 mana spent or 0 mana spent. &{template:default} {{name=Whirlwind Strike}} ?{How many Enemies?| Two,?{Mana Spent?| 5,{{Magic Damage1=[[2D10!1+10]]}} {{Magic Damage2=[[2D10!1+10]]}}| 0,{{Magic Damage1=[[2D10!1]]}} {{Magic Damage2=[[2D10!1]]}} }| } This is my second question today, hope its not spamming.  I appreciate anyone who can offer some advice, Current issue I have when trying to run is my second input box shows up prefilled out with "5,{{Magic Damage1=[[2D10!1+10]]}} {{Magic Damage2=[[2D10!1+10]]}}" instead of prompting "5" or "0"
Since you're already familiar with Advanced Usage for Roll Queries , here's my recommendation: &{template:default} {{name=Whirlwind Strike }} ?{Mana Spent?|0|1|2|3|4|5} {{Magic Damage1=[[ 2D10!1 + ?{Mana Spent?}*2 ]] }} ?{How many Enemies?|   One, |   Two, {{Magic Damage2=[[ 2D10!1 + ?{Mana Spent?}*2 ]]}} |   Three, {{Magic Damage2=[[ 2D10!1 + ?{Mana Spent?}*2 ]]}} {{Magic Damage3=[[ 2D10!1 + ?{Mana Spent?}*2 ]]}} |   etc. }
Thanks Silvyre, this is exactly what I was hoping for.  I need to study up, did not realize you could use the question prompts in that manner, as a user defined variable in the dmg equation.