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

Roll Queries: One answer, multiple outputs?

1462380187

Edited 1462380205
Hello, im trying to make a macro that essentially asks one question, and then gives two different outputs based ont he answer. I know that two roll queries with the same name only need to be answered once, and then all future uses choose the same answer, but what if I want the same answer but different output values? For example: {{Damage= [[8]]?{Type of Ammo?|Normal,P|Gel,S}}} {{AP= [[?{Type of Ammo?|Normal,-1|Gel,+1}]]}} When executing this as part of a roll template macro, the value chosen from the first value overwrites the value from the second, meaning both lines receive the value from the answer to the first roll query. The -1 and +1 do not show up.  Is what im trying to do possible? I essentially want to make a macro that lets me choose the ammo type, and then changes all of the different places that ammo type effects, without having to choose the ammo type over and over for each different value that needs to be input.  Thanks for the help
1462381243
vÍnce
Pro
Sheet Author
I believe your query needs to be exactly the same if you want to use the value multiple times.  Maybe something like(used default template for example): &{template:default} {{Damage = [[ 8 ?{Type of Ammo?|Normal,-1|Gel,+1} ]] }} {{ AP=[[ ?{Type of Ammo?|Normal,-1|Gel,+1} ]] }}
Sorry, maybe I wasnt clear: I DO NOT want to use the same value multiple times. I want to ask a question once (IE: what ammo?) and then use different values based off that single question. For example, gel rounds both change the damage type from P to S, and change the AP from -1 to +1. Those are two separate values both changed by the same answer of "Gel Rounds" I want to know if its possible to ask "What type of ammo?" and then use that single answer to input several DIFFERENT values into a macro.
No. Not without using the API.
You could use an Advanced Roll Query to accomplish this. e.g. ?{Type of Ammo?| Normal, {{Damage=[[8]]P}} {{AP=[[-1]]}} | Gel, {{Damage=[[8]]S}} {{AP=[[+1]]}} }