Paragraph breaks in Dialog Lumps

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Paragraph breaks in Dialog Lumps

Post by Hidden Hands »

How would I go about making paragraph breaks in a dialogue lump? For example, when you talk to someone currently, it comes up in one big chunk. I want it spaced out throughout the speach box to make it easier to read if they say a lot.

Any help please?
Thanks in advance.
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Hidden Hands »

Does anyone know how I can do this yet please?
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Rachael »

I'm not 100% certain this will work, but you can try and insert "\n" into line breaks.

"For example, a text\n\ncould be rendered like this"

Code: Select all

For example, a text

could be rendered like this
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Hidden Hands »

Rachael wrote:I'm not 100% certain this will work, but you can try and insert "\n" into line breaks.

"For example, a text\n\ncould be rendered like this"

Code: Select all

For example, a text

could be rendered like this
So basically...

Code: Select all

I discovered the source of the invasion. The demons seem to be using a vortex that ties our world to theirs.
\n
-Commander Kelly.
?
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Rachael »

Try two of them, one for each line break, but yeah.
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Hidden Hands »

Great thank you. I'll give this a go tomorrow.
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: Paragraph breaks in Dialog Lumps

Post by Hidden Hands »

Just wanted to say thank you. This is exactly what I wanted and it works perfectly. !!
Post Reply

Return to “Scripting”