I'm trying to create abilities for my characters that run a roll query for adv/disadv and use the standard template to show the results. The ability I'm trying this with (Eldritch Blast in DD5E) also uses the target bar to show the value in bar 2 of the targeted NPC (for AC).
I've tried lots of different options including nesting a standard, advantage and disadvantage version of the ability and calling them from the roll query.
This is what I have at the moment all in a single ability macro.
&{template:default}{{name=Eldritch Blast}}?{Adv Dis?|No,{{Attack:=[[1d20+6]] vs @{target|bar1}}}{{Damage:=[[1d8+4]]}}|Adv,{{Attack:=[[2d20kh+6]] vs @{target|bar1}}}{{Damage:=[[1d8+4]]}}|Dis,{{Attack:=[[2d20kl+6]] vs @{target|bar1}}}{{Damage:=[[1d8+4]]}}}
This for some reason just skips the roll query, rolls 1d20 and 3d8 and gives the below error in the chat
No character was found for 'target|bar1}}}{{Damage:=[[1d8+4]]}}'
I can seem to get individual pieces of this to work but not all together. Any help would be greatly appreciated.