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

Macro is splitting between two messages in the text chat

Hi, First post here, so I'm sorry if this is been answered before but after a few hours of searching I haven't found it. I'm trying to create an Eldritch Blast macro for 5e that has an fx beam, emote and also adds a Y/N Hex query for an additional 1d6. It works perfectly for the singular beam but I'm having a minor problem when it reaches two beams as it splits the message in the chat and I'm struggling for a solution. /em casts Eldritch Blast &{template:npcaction} {{name=Cantrip}} {{rname=Eldritch Blast}} ***for the first beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, ***for the second beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, **If successful against target's AC, then damage is [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex?| No, [[0]] |Yes,[[1d6]] } / [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex2?| No, [[0]] |Yes,[[1d6]] }*** /fx beam-acid @{target|Caster|token_id} @{target|Foe1|token_id} /fx beam-acid @{target|Caster|token_id} @{target|Foe2|token_id} Like this: Hoping that someone can help me work out what's causing this. Thanks,
1597415890
The Aaron
Roll20 Production Team
API Scripter
The only way to keep those together is to make them all part of the Roll Template.  I don't know the specifics of that template, but I'm sure others here do.  Basically, all your content should be wrapped in {{<LABEL>=<CONTENT>}} blocks in the same line, as you have name and rname.  What the label names to use are, I don't know.
1597417086
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this: /em casts Eldritch Blast &{template:npcaction} {{name=Cantrip}} {{rname=Eldritch Blast}} {{description=***for the first beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, ***for the second beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, **If successful against target's AC, then damage is [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex?| No, [[0]] |Yes,[[1d6]] } / [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex2?| No, [[0]] |Yes,[[1d6]] }***}} /fx beam-acid @{target|Caster|token_id} @{target|Foe1|token_id} /fx beam-acid @{target|Caster|token_id} @{target|Foe2|token_id}
keithcurtis said: Try this: /em casts Eldritch Blast &{template:npcaction} {{name=Cantrip}} {{rname=Eldritch Blast}} {{description=***for the first beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, ***for the second beam:*** *[[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]] / [[1d20 + @{Brol Grayridge|charisma_mod} [Charisma] + @{Brol Grayridge|PB} [Proficiency] ]]*, **If successful against target's AC, then damage is [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex?| No, [[0]] |Yes,[[1d6]] } / [[1d10 +@{Brol Grayridge|charisma_mod} ]] force damage! + ?{Hex2?| No, [[0]] |Yes,[[1d6]] }***}} /fx beam-acid @{target|Caster|token_id} @{target|Foe1|token_id} /fx beam-acid @{target|Caster|token_id} @{target|Foe2|token_id} That works perfectly. Thank you so much!