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

Chat window formatting question

When I create a macro that prints a message in the chat window, is there a way to issue a "return" command so that the next words appear under the previous ones?  Thank you, Barry
1566234581

Edited 1566234729
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yes, macros can be multiline: here's line 1 and here's line 2 However, doing simple multiline macros like that sends each line as a new message, and so every 5th or 6th line (aka message) will also get your avatar and name prepended to it. Another way is by using roll templates, which count as one message, but can have multi lines in a field: &{template:default} {{name=Test Macro}} {{multiline output=Here's line 1 and here's line 2}} Note that the field endings and beginnings (the double curly brackets) must be on the same line as the previous/next field, but that within a field you can use as many line breaks as you want. There is one caveat here which is that the creator of the sheet has complete style control over how the template looks, so it is possible for them to make a field that displays without respecting line breaks regardless of what you do, but most roll templates respect line breaks just fine except for some specific fields. If you are wanting to use slash commands for something (like say /w, /desc, /em, ...), then you would need to either wrap your multiline in a roll template, or put a new slash command at the start of each line.
Thanks Scott C.
1566240303
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
For quick and dirty use, a shift-return will cause a new line in the chat without sending the message.