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 Queries and Templates

Hello there. I'm trying to get a handle on Nesting and I'm using the Default Roll Template to add ease of appearance. Specifically I'm making a "Deployment Macro" for when my players deploy NPC troops for missions during time passes or as apart of a larger plan while they do their own thing. I'm wanting to make the "Small Team" part a Query so they can send a larger or smaller team to deal with different difficulties. I've gotten the second input dialog to appear, but it has the text of the first entry in it and when submitted will show all the entries. Usually when this happens its a matter of me missing a single symbol or character replacement. I thank you for your assistance. Note : I can get it working with the first section of code, it just breaks when nesting so I know that I have the replacements on the template Correct. ?{Maquis Deployment | Easy,  &{template:default}  {{name=Maquis Strategic Deployment **Easy**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[d6! + [[1d3]]d6]]}} |  Moderate,  &{template:default}  {{name=Maquis Strategic Deployment **Moderate**}} {{Medium Team=[[d6! + 5d6]]}} {{Enemy Strength=[[d6! + [[1d4+1]]d6]]}} | Difficult,  &{template:default}  {{name=Maquis Strategic Deployment **Difficult**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[d6! + [[3+d2]]d6]]}} | Very Difficult,  &{template:default}  {{name=Maquis Strategic Deployment **V Difficult**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[d6! + [[6+(d2-1)]]d6]]}} | Heroic,  &{template:default}  {{name=Maquis Deployment **Taldarin Team S**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[2d6! + [[1d4+2]]d6]]}} | Heroic +,  &{template:default}  {{name=Maquis Deployment **Taldarin Team M**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[2d6! + [[1d4+1d4+2]]d6]]}} | Heroic ++,  &{template:default}  {{name=Maquis Deployment **Devlous Team**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[2d6! + [[9+d4]]d6]]}} | Heroic +++,  &{template:default}  {{name=Maquis Deployment **Taldarin Actual**}} {{Small Team=[[d6! + 3d6]]}} {{Enemy Strength=[[3d6! + [[11+d3]]d6]]}} } TEAM SELECTION   ?{Team Selection | Small, {{Small Team=[[d6! + 3d6 + (d3-1)]]}} | Medium, {{Medium Team=[[d6! + 5d6 + (d3-1)]]}} | Large, {{Large Team=[[d6! + 8d6 + (d3-1)]]}} | Skilled Small, {{Skilled Small Team=[[d6! + 3d6 + (d3-1) + 3d6]]}} | Skilled Medium, {{Skilled Medium Team=[[d6! + 5d6 + (d3-1) + 3d6]]}} | Skilled Large, {{Skilled Large Team=[[d6! + 8d6 + (d3-1) + 3d6]]}} | Specialist Team, {{Specialist Team=[[2d6! + 7d6 + (d3-1)]]}}  } TEAM SELECTION TRY 2 ?{Team Selection | Small, Small Team=[[d6! + 3d6 + (d3-1)]] | Medium, Medium Team=[[d6! + 5d6 + (d3-1)]] | Large, Large Team=[[d6! + 8d6 + (d3-1)]] | Skilled Small, Skilled Small Team=[[d6! + 3d6 + (d3-1) + 3d6]] | Skilled Medium, Skilled Medium Team=[[d6! + 5d6 + (d3-1) + 3d6]] | Skilled Large, Skilled Large Team=[[d6! + 8d6 + (d3-1) + 3d6]] | Specialist Team, Specialist Team=[[2d6! + 7d6 + (d3-1)]] }
1554426914
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I try to avoid using Drop Down queries, especially in Roll Templates as they can rapidly become exponentially tangled. Luckily, Scott C has written a  Drop Down Nester  which you can find in the Stupid Tricks thread. Perhaps it can give you a hand.
Thank you good fellow. I'll check it out.