OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Muzzle Flash on 06 Mar 2005, 22:01:16
-
Newbie here! I have messed with the OFP editor for a couple of years and I am learning slowly. The question I have is, when I use triggers to produce text on the screen, I don't know how to add a second line of text, all I get is one huge line of text across the screen. I though by adding a semi-colon would do it but it didn't, if anyone here can help me, that would be appreciated.
-
Try /n or is it \n
One of those anyway.
Planck
-
..."This is the first line.\nThis is the second line."
the \n should do it
if not, try /n
Edit:
god, Plank. beat me while i was postin
-
Awsome, thanks I will try it, I assume the N means next, lol.
-
I think it means.....newline
Planck
-
Does anyone know if any of the other escape commands works in OFP. Like \t?
:beat: *Gets Shot* :beat:
-
No idea...........what does \t do?
Why don't you experiment for us and report back here sharpish?
Planck
-
Nah, too lazy to boot up OFP. ;D
\t = tab
In C++ anyway.
:beat: *Gets Shot* :beat:
-
\r\n = windows newline - which is why when you press enter it takes 2 bytes - or 2 characters if you see a textbox which has "You have X characters left..."
\n = newline
Just use \n..