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

DnD 5e Macro template bug

Hey All,  I'm trying to write a macro for the spell scorching ray using attributes in the d&d 5e shaped sheet. In essence, there is three attack rolls and three damage rolls. Here's what I tried: &{template:5eDefault} {{spell=1}}{{character_name=@{selected|character_name}}} {{title=Scorching Ray}} {{subheader=3 rays}}{{attack1=[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]}}{{damage1=[[2d6]] fire}}{{attack2=[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]}}{{damage2=[[2d6]] fire}}{{attack3=[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB}]]}}{{damage3=[[2d6]] fire}} Here is the  output . Starting with the second roll of the second attack, the d20s are not rolled but everything seems to simply be emoted. More strangely, from one execution to the other, the output is different.  I have then replaced all instances of @{selected|PB} with @{selected|dexterity_mod} and everything works fine which leads me to believe that @{selected|PB} is screwing up the execution. I have no clue what is happening here and desperately looking for help. 
1456116748

Edited 1456147052
You just need some space. Add a space at the end of each attack before the ]]. That fixes it, it's a long standing issue but it's a simple fix.  &{template:5eDefault} {{spell=1}}{{character_name=@{selected|character_name}}} {{title=Scorching Ray}} {{subheader=3 rays}}{{attack1=[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]}}{{damage1=[[2d6]] fire}}{{attack2=[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]}}{{damage2=[[2d6]] fire}}{{attack3=[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]|[[1d20+@{selected|intelligence_mod}+@{selected|PB} ]]}}{{damage3=[[2d6]] fire}}
Great! thanks a lot! I've been pulling my hairs for the last couple of days trying to make this thing to work. Works like a charm now :)