Author Topic: Line breaks in chat messages?  (Read 1262 times)

Oi.

This is probably an easy one. I want to have a server welcome message consisting of several lines of text, but I cannot figure out how to do line breaks. I've tried different variations of <br>. Any ideas?




If \n doesn't work, then modify it through the console.
$Pref::Server::WelcomeMessage = "Text" NL "More text";

If \n doesn't work,
\n would never work because it's passed as a backslash and an n, never as the single \n character

Good to know you are read up on the Torque Engine!  \n is the thing I learned to use for new lines in Torque.  It usually works, or does it have to be /n?


Guys, listen to Chrono. \n in a user input would automatically be expanded to \\n, so it wouldn't create a line break, but appear as '\n'.

NINJA: Not his latest post, but the one below Peejester's.

Well this is coding help, so you would figure that they would be doing this in scripts and not user input.

server welcome message lines of text, <br>.

Makes you think...

Thus my first post in this topic.

Thus my first post in this topic. Posted because everybody was just ignoring the fact that in user input, expandEscape is automatically called.