| 07-18-2002, 01:47 AM | #1 |
Guest | Simple question I hope. How do you embed newline characters in a string? I want to be able to do something like this: Set SomeTextVar = This is line #1.\nThis is line #2. In C/C++ \n is a newline character. I need to know how to embed a newline char in a WC3 string so that it displays as two lines during cinematic playback: Cinematic Send Transmission ... and displays SomeTextVar ... Anybody run into this one yet? |
| 07-18-2002, 03:23 AM | #2 |
almost the same except |(direction pipe) is used nextline |n |
| 07-18-2002, 05:28 AM | #3 |
Guest | Excellent. Works like a charm! Curious as to how did you discovered that? I did a quick hexdump but the map files look encrypted. Is there a list somewhere of all the embedded characters? Thanks for the quick response! |
| 07-18-2002, 06:22 AM | #4 |
Well, just a guess I but I bet littlecramp saw it in the campaign maps somewhere. Generally war3 uses the pipe instead of the slash for all the special characters. The other ones I know of are |cXXXXXX where the x's are an HTML color code, and |r, which stops text from being colored. |
