We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Accept
Advertisement Create a free account

Macro query select multiple from list

1483384921

Edited 1483384933
Is it possible to create a query in a macro and allow the user to select multiple values for the query? For instance ?{Query|one|two|three} and have a possible outcome be "one three"?
1483386513

Edited 1483386723
Scott C.
Forum Champion
Sheet Author
API Scripter
Nope, not from a single query, you'll need to repeat the query however many times is the number of possible selections at once (I'd add in a "no selection" option as well. Could also probably figure out some sort of nesting structure that would be something like (html replacements not done): ?{Query| one, one ?{Additional Query|No, | one, one| two, two| three, three| four, four}| two, two ?{Additional Query|No, | one, one| two, two| three, three| four, four}| three, three ?{Additional Query|No, | one, one| two, two| three, three| four, four}| four, four ?{Additional Query|No, | one, one| two, two| three, three| four, four} } It would be a crazy amount of nesting for anything much past two or three possible simultaneous choices.
1483528234

Edited 1483528612
maybe this will help you not sure how to get it to show the html entrys if any one knows il repost it &{template:DnD35StdRoll} {{abilityflag=true}} {{name=@{selected|character_name} }} ?{Special Attack?|Bull Rush,{{checkroll=[Bull Rush]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush</a> ) check: [[1d20 + [[@{selected|str-mod}]]+[[?{Stable|yes,+4|no,0}]] +[[?{Improved BullRush|yes,+4|no,0}]]+[[?{Charging|yes,+2|no,0}]]+ [[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]] ]]}|Grapple,{{checkroll=[grapple]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush</a> ) check: [[1d20 +[[@{selected|grapple}]]+[[?{Stable|yes,+4|no,0}]] +[[?{Improved grapple|yes,+4|no,0}]]+ [[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]] ]]}|Feint,{{checkroll=[Feint]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#feint" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#feint</a> ) check: [[1d20 + [[@{selected|bluff}]]+[[?{nonhumanoid|yes,-4|no,0}]]+[[?{Flanking|yes,+2|no,0}]]+[[?{animal Intelligence (1 or 2)|yes,-8|no,0}]] ]]}|Disarm,{{checkroll=[Disarm]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#disarm" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#disarm</a> ) check: [[1d20 + [[@{selected|meleeattackbonus}]]+[[?{Improved Disarm|yes,+4|no,0}]]+[[?{two-handed weapon|yes,+4|no,0}]]+[[?{Flanking|yes,+2|no,0}]]+[[?{light weapon|yes,-4|no,0}]]+[[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]] ]]}|Sunder,{{checkroll=[Sunder]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#sunder" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#sunder</a> ) check: [[1d20 + [[@{selected|meleeattackbonus}]]+[[?{Improved Sunder|yes,+4|no,0}]]+[[?{two-handed weapon|yes,+4|no,0}]]+[[?{Flanking|yes,+2|no,0}]]+[[?{light weapon|yes,-4|no,0}]]+[[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]] ]]}|Trip,{{checkroll=[Trip]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#trip" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#trip</a> ) check: [[1d20 + [[@{selected|str-mod}]]+[[?{Improved Trip|yes,+4|no,0}]]+[[?{Charging|yes,+2|no,0}]]+[[?{Stable|yes,+4|no,0}]]+[[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]] ]]}|Overrun,&{template:DnD35StdRoll} {{checkroll=[Over run]( <a href="http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush" rel="nofollow">http://www.d20srd.org/srd/combat/specialAttacks.htm#bullRush</a> ) check: [[1d20 +[[@{selected|str-mod}]]+[[?{Improved Overrun|yes,+4|no,0}]]+[[?{Charging|yes,+2|no,0}]]+[[?{Stable|yes,+4|no,0}]]+[[?{Sizemodifier|Fine,−16|Diminutive,-12|Tiny,-8|Small,-4|Medium,0|Large,+4|Huge,+8|Gargantuan,+12|Colossal,+16}]]+[[?{Charging|Yes,+2|No,0&125;]] ]]}]] ]]}}}