Line Breaks and Special Characters
JustinHopewell
11 Oct 2016, 05:15Okay, another question.
I wanted to do a line break in a string, but I don't know what the special character or code is that I need to type to make that happen. I tried to look this up in the documentation but I'm not even sure what the proper term is for something like this.
For example, from the tutorial, I learned that I could use a backslash to use quotation marks within a string. I think this might be called an "escape" character based on my experience with similar stuff in other applications. Or another example is how you can use "!" to represent a number in the label for a turn counter.
Right now I'm mainly trying to figure out how to do line breaks, but if someone could point me to a list of these (and what to call them) I'd appreciate it.
Also I'm using the GUI editor right now, so if the syntax is different depending on whether you're using the GUI editor or not, that might be important to point out.
Thanks,
Justin
Pertex
11 Oct 2016, 06:50You can use HTML in your output, so linebreak is <br>
msg ("Line 1<br>Line 2")
JustinHopewell
14 Oct 2016, 18:09Thanks! So this should work within the GUI editor? Also, any idea on my other questions above?