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

How do I stop the Line Break in this macro?

m Rolls Archery Barrage Attack       ( #1 | #2 | #3 | #4? )  [[1d20 + 12 - ?{Power Attack Sacrifice|0}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]]  ARROW DAMAGE (magic/piercing)    [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | | if crit [[1d12]] ELECTRIC DAMAGE [[1d12]] | [[1d12]] | [[1d12]] | [[1d12]] | [[1d12]] | if crit[[1d12]] It creates a separate chat box for the Electric Damage section.
1594069921
GiGs
Pro
Sheet Author
API Scripter
You can wrap the whole thing in {{ }} to get roll20 to treat it as a single line. Though with so many inline rolls, that is likely to look pretty crushed together and horrible. That macro looks perfect for a rolltemplate though. &amp;{template:default} {{name=Attack}} {{( #1 | #2 | #3 | #4? ) =[[1d20 + 12 - ?{Power Attack Sacrifice|0}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d20 + 12 - ?{Power Attack Sacrifice}]] }} {{ARROW DAMAGE (magic/piercing)&nbsp; =[[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | | if crit [[1d12]]}} {{ELECTRIC DAMAGE=[[1d12]] | [[1d12]] | [[1d12]] | [[1d12]] | [[1d12]] | if crit[[1d12]]}} Put the above in a macro and you'll get an output like Still pretty ugly but more readable. You can clean it up a bit more by reorganising the template. Here's a different layout: That comes from this template: &amp;{template:default} {{name=Attack}} {{Attacks=**Att | Dmg | Elec**}} {{Attack #1 =[[1d20 + 12 - ?{Power Attack Sacrifice|0}]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12]] }} {{Attack #2= [[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12]] }} {{Attack #3=[[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12]] }} {{Attack #4=[[1d20 + 12 - ?{Power Attack Sacrifice}]] | [[1d12+4 + ?{Power Attack Sacrifice}*2]] | [[1d12]] }} {{CRIT DAMAGE=------ | [[1d20 + 12 - ?{Power Attack Sacrifice}]]|&nbsp; [[1d12]]}} The way it works is covered in the wiki:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates</a>
1594071821
GiGs
Pro
Sheet Author
API Scripter
Heres a version of the macro using an undocumented trick to add damage rolls together: &amp;{template:default} {{name=Attack}}&nbsp; rolls=[[ [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] ]]&nbsp; {{Attacks=**Att | Pierce+Elec = DMG**}} {{#1 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[0]] + $[[1]] = $[[2]] }} {{#2 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[3]] + $[[4]] = $[[5]] }} {{#3 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[6]] + $[[7]] = $[[8]] }} {{#4 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[9]] + $[[10]] = $[[11]] }} {{#5 =------ | $[[12]] + $[[13]] = $[[14]] }} {{Crits =------ | $[[15]] + $[[16]] = $[[17]] }} It looks like this I added a 5th row, because you had 5 damage rolls but only 4 attack rolls. If that doesnt belong, use this version &amp;{template:default} {{name=Attack}}&nbsp; rolls=[[ [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] + [[ [[1d12+4 + ?{Power Attack Sacrifice|0}*2]] + [[1d12]] ]] ]]&nbsp; {{Attacks=**Att | Pierce+Elec = DMG**}} {{#1 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[0]] + $[[1]] = $[[2]] }} {{#2 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[3]] + $[[4]] = $[[5]] }} {{#3 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[6]] + $[[7]] = $[[8]] }} {{#4 =[[1d20 + 12 - ?{Power Attack Sacrifice}]] | $[[9]] + $[[10]] = $[[11]] }} {{Crits =------ | $[[15]] + $[[16]] = $[[17]] }}
That is beautiful thanks.&nbsp;
1594076734
GiGs
Pro
Sheet Author
API Scripter
You're welcome :) You might want to look at replacing some of those numbers with attribute references. If the +4 above is based, on, say a strength you could replace it with +@{Peren|strength} (if your character is called Peren). Likewise the +12 can be replaced with references to the appropriate attribute sum. This means you wont need to change them when your stats or level changes.
cool gyus nice moves&nbsp;