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 .
×

Help with roll query macro

So after looking up the roll 20 guides for macros im trying to make one that basically lets me choose between the damage profile for my weapon and then choose whether the atk has arcane weapon cast or not and the display the output in a default roll template, but the macro breaks after the initial choice ie 1H or 2H and I cant figure out as to why, any help would be greatly appreciated. &{template:default} {{name=Sword Atk}} {{?{1H or 2H|    1H, ?{Arcane or Normal? |       Arcane,Attack=[[1d20+4+3+2]]          }} {{Damage= [[1d8+4+2]]          }} {{Additional Effects=  Target Takes an Additional [[1d6]]          **Elemental Damage**.}&#125 |              Normal,Attack=[[1d20+4+3+2]] }} {{Damage= [[1d8+4+2]]        }} |    2H, ?{Arcane or Normal? |       Arcane,Attack=[[1d20+4+3+2]] }} {{Damage= [[1d10+4+2]]        }} {{Additional Effects=  Target Takes an Additional [[1d6]]        **Elemental Damage**.}} |             Normal,Attack=[[1d20+4+3+2]] }} {{Damage= [[1d10+4+2]]        }} }
1666983597

Edited 1666983984
Gauss
Forum Champion
Here you go: &{template:default} {{name=Sword Atk}} {{attack=[[1d20+4+3+2]]}} {{damage=[[1d?{1H or 2H|1H,8|2H,10}+4+2]]}} {{Additional Effects=Target Takes an Additional [[1d6*?{Arcane?|Yes,1|No,0}]] **Elemental Damage**.}} The 1H vs 2H query changes the size of the damage dice.  The Arcane is a simple yes/no query that will either enable or disable the elemental damage dice.  I set it to default to Yes, but if you would prefer to default it to No just swap the "Yes,1" and "No,0".
thank you 
1666984473

Edited 1666984492
Gauss
Forum Champion
Actually, I just came up with an idea to eliminate the line altogether as desired. Note, this will probably only work for the ENDING line of the macro, make sure you don't add more lines to the macro, it could result in weirdness &{template:default} {{name=Sword Atk}} {{attack=[[1d20+4+3+2]]}} {{damage=[[1d?{1H or 2H|1H,8|2H,10}+4+2]]}} {{Additional Effects=Target Takes an Additional [[1d6]] **Elemental Damage**.}?{Arcane?|Yes,}|No,0} This Yes/No query will eliminate the entire line if the answer is No. It does that because it won't complete the {{Additional Effects= }} ending bracket "}" on a no, but will complete it on a yes.  I have tested it and it works. 
1666987597

Edited 1666988196
u just answered my next dilemma XD because I managed to make it work with No,  but the result for yes didn't display as part of the table
1666988511
Gauss
Forum Champion
What dilemma was that?
i did ?{{ at the start of the additional effects function which stopped it from being recognized as part of the roll table, whilst you put it at the end which made it recognize it, so thank you again XD