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

[5e]Sharpshooter macro help

So i have a strange macro problem. If I run it from the editing level, it works (sort of) BUT if I run it from normal button, it doesn't work... The macro looks like this ?{Strzelec Wyborowy| Nie, &{template:atk} {{mod=+[[@{dexterity_mod}[Zr] + @{pb}[PzB] + 1[Magiczny] + 2[Łucznictwo]]]}} {{rname=[Łuk długi +1](~attack1_dmg)}} {{rnamec=[Łuk długi +1](~attack1_crit)}} {{r1=[[1d20cs>20 + @{dexterity_mod}[Zr] + @{pb}[PzB] + 1[Magiczny] + 2[Łucznictwo] ]] }} {{normal=1}} {{attack=1}} {{range=zasięg: 18m}} | Tak, &{template:atk} {{mod=+[[@{dexterity_mod}[Zr] + @{pb}[PzB] + 1[Magiczny] + 2[Łucznictwo] - 5[Strzelec Wyborowy]]]}} {{rname=[Łuk długi +1](~attack1_dmg_sharp)}} {{rnamec=[Łuk długi +1](~attack1_crit_sharp)}} {{r1=[[1d20cs>20 + @{dexterity_mod}[Zr] + @{pb}[PzB] + 1[Magiczny] + 2[Łucznictwo] - 5[Strzelec Wyborowy]]] }} {{normal=1}} {{attack=1}} {{range=zasięg: 18m}}} attack1_dmg &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + @{dexterity_mod}[Zr] + 1[Magiczny] ]] }} {{dmg1type=kłute}} attack1_crit &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8*2 + @{dexterity_mod}[Zr] + 1[Magiczny] ]] }} {{dmg1type=kłute}} attack1_dmg_sharp &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + @{dexterity_mod}[Zr] + 1[Magiczny] + 10[Strzelec Wyborowy] ]] }} {{dmg1type=kłute}} attack1_crit_sharp &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8*2 + @{dexterity_mod}[Zr] + 1[Magiczny] + 10[Strzelec Wyborowy] ]] }} {{dmg1type=kłute}} In the first case, after clicking damage, the macro throws an error I'm pretty sure I have to use html entities somewhere in the other macros, but all attempts failed.
I noticed that Ability command causing the problem. Is it possible to make a query with multiple abilities? e.g ?{Sharpshooter | attack1_dmg, [Longbow+1](~attack1_dmg) | attack1_crit, [Longbow+1](~attack1_crit) | attack1_dmg_sharp, [Longbow+1](~attack1_dmg_sharp) | attack1_crit_sharp, [Longbow+1](~attack1_crit_sharp) }