Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-07-2009 09:05
Hi.
1. Is there a way to make it so I can have LSL say quotation marks? ' doesn't work. Same question with \n.
2. How can I dynamicaly set new lines with llSetText? when I try and insert \n it just says them in the llSetText floating above the prim. I want it to actually add a new line, but it's being done off chat no hard coded.
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
12-07-2009 09:15
You can escape things with backslashes. llOwnerSay("This is a quotation mark: \" "  ; llOwnerSay("This is a newline: \\n "  ; To sneak an empty line into llSetText, cheat and add a space. llSetText("This\n \nis a blank line \n \n", <1,1,1>, 1); If you want to use "\n" from inputted text as a newline, you will have to replace it yourself. string junk = "this has a literal \\n in it"; llOwnerSay("original: " + junk ); llOwnerSay("fixed: " + llDumpList2String(llParseString2List(junk, ["\\n"], []), "\n"  );
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-07-2009 10:04
Thanks 
|