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 .
×
Create a free account

5e Global Attack Mod breaks when used too much in the same macro

Due to shenanigans, my level 17 fighter/warlock can cast Eldritch Blast up to 3 times in a turn (Illusionist's Bracers and occasional Action Surge), so I made a macro to run those all nice and neat in one block to make it easy (assuming I'm attacking a single target. I wanted to include Global Attack Mods in the macro in case a party member casts bless on my character, but it looks really bad if I add it as a unique roll similar to the regular 5e attack template, so I added it inside the regular attack roll. As such, I had to add a 0 global attack mod or the in-line roller breaks when I have no global attack modifiers turned on, but when I turn on Bless, it rolls twice normally, but then any roll after the first two doesn't actually roll (except for the d4 Bless). Here's the output without Bless turned on: And here it is with Bless turned on: It's not a fault of the macro, as both instances are the same. It's something when I add in the Bless. Here is the macro, though, just in case: &{template:npcaction} {{name=Fornath}} {{rname=Normal Eldritch Blast Mass Roll- 2 casts w/ Adv}} {{description=[[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] [[2d20d1+@{pb}+@{charisma_mod}+@{global_attack_mod}]] Range 120 feet Attack Roll Modifier = [[@{pb}+@{charisma_mod}]] Each successful hit can push the target 10 feet away from Fornath. [Damage](~Mass-EB-Damage) [w/ Hex](~Mass-EB-Damage-H)}} Can anyone identify the issue (and hopefully resolve it)?  I have a work around with a query, but I'd like to solve this issue for real.
Try adding a space after your @{global_attack_mod}. The parser can get confused if there is a run of closing brackets. For example consider [[ 1+ [[0]]]] [[ 1+ [[0]]]] [[ 1+ [[0]]]] [[ 1+ [[0]]]] vs [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] You'd expect them to both act the same but the first macro breaks on the third roll and beyond similar to the problem you're seeing. So I'd suspect the "Bless" modifier is causing a run of closing brackets to appear.
RainbowEncoder said: Try adding a space after your @{global_attack_mod}. The parser can get confused if there is a run of closing brackets. For example consider [[ 1+ [[0]]]] [[ 1+ [[0]]]] [[ 1+ [[0]]]] [[ 1+ [[0]]]] vs [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] [[ 1+ [[0]] ]] You'd expect them to both act the same but the first macro breaks on the third roll and beyond similar to the problem you're seeing. So I'd suspect the "Bless" modifier is causing a run of closing brackets to appear. That fixed it! Thank you. It's so weird that it acts that way, but I can now make it work.