PDA

View Full Version : FG Question - Paragraph Types: Chat Frames



Valekk
April 13th, 2020, 15:38
Morning all,

When I right click and select "paragraph types > chat frame". How do I put more then one paragraph in the same chat frame?

I preloaded the Lost mines module and noticed that they have areas with a few paragraphs in one chat frame and when it is clicked and pops in chat it is a bluish text color.

Trenloe
April 13th, 2020, 15:44
It's only possible if you manually edit the underlying XML. You can't do this through the interface.

Manual XML line break code shown here: https://www.fantasygrounds.com/forums/showthread.php?25455-Multiple-Paragraphs-in-one-text-box&p=224831&viewfull=1#post224831

Valekk
April 13th, 2020, 15:46
Perfect, thanks Trenloe!

wndrngdru
April 14th, 2020, 00:03
Is there a technical reason it needs to work this way? It would seem (and be more intuitive) that text of the same type should group together, like body text and lists do currently.
Why does this behave differently?

Moon Wizard
April 14th, 2020, 00:06
Because, you can have a whole set of chat responses that an NPC might make listed in order; and they are truly different phrases said at different times.

JPG

wndrngdru
April 14th, 2020, 00:13
In those cases, could I not put a blank "body text" line between them to break them up? Or, even better, do a SHIFT+Enter to not break into a new frame (I know this isn't currently implemented).
I mean, I don't really mind having to open an xml editor to combine chat paragraph's in a single frame, though it would certainly be more convenient if there was a way to do it in FG proper.
Guess I'll wander over to the wishlist... :)

Hey, look! There's already an entry for it. https://fg2app.idea.informer.com/proj/?ia=62869

Talyn
April 14th, 2020, 01:39
What I usually recommend is where you would normally want the paragraph break to be, instead place a short character phrase. Then when you edit the XML, you can do a single global find/replace to get them all.

So if I wanted the final output to be:


Text line 1 blah.

Text line 2 blah blah.

Text line 3 blah blah blah.


i would write something along the lines of:



Text line 1 blah.::BREAK::Text line 2 blah blah.::BREAK::Text line 3 blah blah blah.


Exit FG (that's super important to avoid FG re-saving over the database file after you've edited it)
Go into your campaign folder and load the db.xml file into a text editor (not a word processor!)
Do a Find/Replace. Use ::BREAK:: as the Find phrase (or whatever you chose as your 'break phrase')

Replace with:

(JFC I hate BB Code forums) anyway replace with two back-to-back ASCII 13 characters which will be (delete spaces between these):
& # 1 3 ; & # 1 3 ;

Load back into FG and the chat frames will have their paragraph breaks.