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 a nested query macro.

I created this ested macro query and I managed to get it to work, but it has since stopped working. I am unsure how to get it to work: ?{How many targets? |One Target, ?{Bonus or Penalty|       None,     &&{template:default} {{name=Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              |       One Bonus,     &&{template:default} {{name=Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}                   |       Two Bonus,     &&{template:default} {{name=Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}                   |            One Penalty,     &&{template:default} {{name=Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}                 } |Two Targets, ?{Bonus or Penalty|       None,     &&{template:default} {{name=First Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                        |       One Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                             |       Two Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                  |            One Penalty,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                } |Three Targets, ?{Bonus or Penalty|       None,     &&{template:default} {{name=First Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Third Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}                        |       One Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                             &&{template:default} {{name=Third Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}                             |       Two Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                  &&{template:default} {{name=Third Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}     |            One Penalty,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                &&{template:default} {{name=Third Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}        } |Four Targets, ?{Bonus or Penalty|       None,     &&{template:default} {{name=First Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Third Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Fourth Attack}} {{attack=[[1d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-30]]}} {{damage=[[2d6+4]]}}                        |       One Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                             &&{template:default} {{name=Third Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Fourth Attack}} {{attack=[[2d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-30]]}} {{damage=[[2d6+4]]}}                             |       Two Bonus,     &&{template:default} {{name=First Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                  &&{template:default} {{name=Third Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Fourth Attack}} {{attack=[[3d100kl1cs<1cf>96]] vs. [[@{rifle_shotgun}-30]]}} {{damage=[[2d6+4]]}}     |            One Penalty,     &&{template:default} {{name=First Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}]]}} {{damage=[[2d6+4]]}}              &&{template:default} {{name=Second Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-10]]}} {{damage=[[2d6+4]]}}                                &&{template:default} {{name=Third Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-20]]}} {{damage=[[2d6+4]]}}     &&{template:default} {{name=Fourth Attack}} {{attack=[[2d100kh1cs<1cf>96]] vs. [[@{rifle_shotgun}-30]]}} {{damage=[[2d6+4]]}}        } }
1608656542

Edited 1608656551
Jordan C.
Pro
API Scripter
What error are you getting? I was able to get this to work when I replace "rifle_shotgun" with "strength" so I could test it with an ability that my test character had so it might be unable to find the attribute value for rifle_shotgun
Turns out that the error came from somewher else, it was an error in my chat.