OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Muzzle Flash on 06 Mar 2005, 22:01:16

Title: How to Add Another Line of Text?
Post 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.
Title: Re:How to Add Another Line of Text?
Post by: Planck on 06 Mar 2005, 22:07:40
Try /n  or is it \n

One of those anyway.


Planck
Title: Re:How to Add Another Line of Text?
Post by: Tyger on 06 Mar 2005, 22:09:45
..."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
Title: Re:How to Add Another Line of Text?
Post by: Muzzle Flash on 06 Mar 2005, 22:11:30
Awsome, thanks I will try it, I assume the N means next, lol.
Title: Re:How to Add Another Line of Text?
Post by: Planck on 06 Mar 2005, 22:13:18
I think it means.....newline


Planck
Title: Re:How to Add Another Line of Text?
Post by: dmakatra on 06 Mar 2005, 22:20:37
Does anyone know if any of the other escape commands works in OFP. Like \t?

:beat: *Gets Shot* :beat:
Title: Re:How to Add Another Line of Text?
Post by: Planck on 06 Mar 2005, 22:24:13
No idea...........what does \t do?

Why don't you experiment for us and report back here sharpish?


Planck
Title: Re:How to Add Another Line of Text?
Post by: dmakatra on 06 Mar 2005, 22:37:59
Nah, too lazy to boot up OFP. ;D

\t = tab

In C++ anyway.

:beat: *Gets Shot* :beat:
Title: Re:How to Add Another Line of Text?
Post by: Acecool on 07 Mar 2005, 10:29:54
\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..