Is there any way to insert a newline into a string using scripts alone?
I know you can do it using XML language files, but I would like to do this using nothing but scripts. I am trying to reproduce a crash bug, and letting the reproduction be all in one file would be very helpful.
Inserting newline into a string
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Short answer: You cant, you have to read the newline character from a tfile first and then format it in.
Complicated answer: its possible to force non-standard characters into a string if you manaully edit the xml, if you find where that string is defined in your script xml and replace it with \012 (the octal code for newline), it may work as intended, i havent tried this for newline, but i have done it for a parser that used \001 & \002 - side effects unknown, do this at your own risk.
probably best not to use the complicated answer in a crash test
Complicated answer: its possible to force non-standard characters into a string if you manaully edit the xml, if you find where that string is defined in your script xml and replace it with \012 (the octal code for newline), it may work as intended, i havent tried this for newline, but i have done it for a parser that used \001 & \002 - side effects unknown, do this at your own risk.
probably best not to use the complicated answer in a crash test
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire