How do I add cr/lf to a string?

How do I add cr/lf to a string? Does NWScript support escape codes or is there another method maybe using the hex equivalents of the ASCII codes for [carriage return] and [line feed]? Otherwise when I use SetDescription() everything is just going to be bunched up. Tried the lexicon (both on and off line) and it is no help for this.



Thanks. So it does support escape characters then.


Lexicon? Are you asking about in nwn1 or nwn2?

i think the escapes to choose from are limited - in fact right now the only one i can think of is newline.

i recall trying \t (tab) but it didn’t work fer me

btw, if you’re searching/manipulating a string for/with an escape… its length is only 1 char (the escape, not the string…)

1 Like