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

Nested Roll Queries (Questions)

1492721747
AquaAlex
Sheet Author
Translator
API Scripter
So this does not work: ?{Which Type of Roll|Bonus, (((({?{Number of Dice|1}d10}kl1)-1)*10)+1d10)|Penalty, (((({?{Number of Dice|1}d10}kh1)-1)*10)+1d10)} so I tried replacing all the } with & # 125 and all the | with & # 124  - but still not working so i get this: which is 1st option from main question and option from 2nd question Then I select Bonus and I get this: which includes the d10 on to question after the first }
Here is a solution that I believe works how you want it to work without needing to nest the queries [[((?{Number of Dice|1}d10?{Which Type of Roll|Bonus,kl1|Penalty,kh1})-1)*10+1d10]] Otherwise here is the nested solution ?{Which Type of Roll|Bonus,[[(((({?{Number of Dice|1}d10}kl1)-1)*10)+1d10)]]|Penalty,[[(((({?{Number of Dice|1}d10}kh1)-1)*10)+1d10)]]}
1492723902
AquaAlex
Sheet Author
Translator
API Scripter
Kyle G. said: Here is a solution that I believe works how you want it to work without needing to nest the queries [[((?{Number of Dice|1}d10?{Which Type of Roll|Bonus,kl1|Penalty,kh1})-1)*10+1d10]] Brilliant! much Cleaner!