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

Advanced Roll Query Nesting Question

I am sooooo... close! I am trying to do a Roll Query that is several levels deep that will let the player roll for damage for D&D 2e, and I have it working except that I need to add one more level and I can't seem to figure out the syntax to get it working. Here is the concept: (L1) Select Weapon {L2) Is the Target SM or L? (L3) Was this a critical hit? (L4) Perform the roll and add the modifiers from the character sheet, BUT ALSO QUERY FOR AND ALLOW THE PLAYER TO SPECIFY a conditional modifier. So as I said, I have Levels 1-3 working, I just can't figure out how to get the query for the conditional modifier to work! Here is a pastebin with the code that I have so far: <a href="http://pastebin.com/7xDeg0aG" rel="nofollow">http://pastebin.com/7xDeg0aG</a> Anyone have any suggestions or answers? Thanks in advance!
1481230975

Edited 1481232003
Silvyre
Forum Champion
Here's my personal recommendation: &amp;{template:default} {{name=@{character_name} deals **?{Crit|No, |Yes, *2[critical]}** damage to **@{target|token_name}**!}} ?{Size|S/M, 0|L, 1} {{A hit with ?{Weapon| @{weaponname}, @{weaponname} for [[ [[@{damsm} * (1 - ?{Size&amp;#125;) + @{daml} * ?{Size&amp;#125;]] ?{Crit&amp;#125; + @{strengthdmg} * @{strbonus} + @{damadj} + 2 * @{specialist-attack} + 3 * @{mastery-attack} | @{repeating_weapons_$0_weaponname}, @{repeating_weapons_$0_weaponname} for [[ 1d8 } + (?{Modifiers|0}) ]] damage. }}
Wow, that was perfect!!! It does exactly what I need and, of course, it is much more elegant than my solution! Thanks so much for your help Silvyre!
1481291880
Silvyre
Forum Champion
Awesome! Enjoy!