
%NEWLINE% macro trick
Inserting a new line into chat by Kyle E.:
This may have been posted elsewhere, but I couldn't find it on any other thread. To get a new line in the chat you can use %NEWLINE% (including the percent symbols). That will get parsed out and replaced with a new line charter. This can be faster than using a macro. One other benefit is that reusing dice (aka $[[0]]) only works on the same line, so if a new line is copied in then the reusing format will not work. It does however work with adding %NEWLINE% in the middle. Hopefully, this helps someone!
/em
Experimenting around with %NEWLINE%, I see the text becomes centered, at least with /em:
/em swings his sword, rolling a [[d20+3]] %NEWLINE% dealing [[d8+3]] damage %NEWLINE% (If critical, dmg is: [[2d8+3]])
Roll Templates
Using them in a roll template, it gives the same result as if you had used normal line breaks, with the difference that your macro being a one-liner.
With %NEWLINE%:
&{template:default} {{name=Test Attack}} {{attack=[[1d20]]}} {{damage=[[2d6]]}} {{desc= **Lorem ipsum** %NEWLINE% dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.%NEWLINE% %NEWLINE% **Ut enim** %NEWLINE% ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. }}
With normal line breaks:
&{template:default} {{name=Test Attack}} {{attack=[[1d20]]}} {{damage=[[2d6]]}} {{desc= **Lorem ipsum**When adding %NEWLINE% to a character sheet's attribute to format something like a long class description, it seems to work as well as just using a normal line break, so no improvement there.
dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqum.
**Ut enim**
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. }}
Tooltip
With the chat Tooltip trick, you can use normal linebreaks or %NEWLINE% to break up the tooltip. Also noticed that you can style the tooltip text with markdown.
&{template:default} {{name=lorem}} {{description= [**Burn**](#" class="showtip" title="Causes damage at start of turn, **Reflex** save to end condition. %NEWLINE% %NEWLINE% Creatures immune to *fire* or *radiant* damage are immune to this condition.%NEWLINE% %NEWLINE% Characters with resistance to fire or radiant damage have advantage on the save) ullamco laboris nisi ut aliquip ex ea commodo consequat. }}
Furthermore, you can use inline css to style your tooltips or links so they are noticable in the text chat, by default links only get the hyperlink underline when you move your mouse over them.
[Monk Table](https://app.roll20.net/campaigns/journal/4570874/handout/-McOfRE97R7wPlR44PvS" class="showtip" style="text-decoration: underline; color:#08c;" title="Link to the Monk Progression table)
Sadly you can't use inline CSS to style a tooptip, as that seems to
break the trick and instead applies the styling to the word with the
tooltip.
Tooltip with inline rolls
Just discovered that the tooltip trick can include inline rolls:
[**Burn**](#" class="showtip" title="Causes damage at start of turn, **Reflex** save of [[3d6+2]] to end condition.)
Anyone got any other cool related tricks?
Stuff like combining several of the advanced macro tricks like above.