Page 1 of 1

Removing speaker name when dialogue is consecutive

Posted: Mon Apr 07, 2025 5:33 pm
by Rockoo
Hi Tony,

Just a quick question - I have the dialogue shown here:
Screenshot 2025-04-07 222855.png
Screenshot 2025-04-07 222855.png (122.74 KiB) Viewed 729 times
What I would like is whenever a speaker speaks consecutively, as 'Narrator' does here, their speaker name is removed from their subtitle entries and the entries are slightly closer together. Currently every entry starts a new line for proper spacing and, as seen in the image, there is a speaker title for every bit of dialogue.

If this requires scripting I'm happy to go into that if needs be - no need to have an entirely visual solution (although would obviously be nice!)

Thanks for your help.

Re: Removing speaker name when dialogue is consecutive

Posted: Mon Apr 07, 2025 8:20 pm
by Tony Li
Hi,

It requires a bit of scripting, but you can adapt the already-written script in this article if you want: How To: Color Actor Name and Indent Text

Related: How To: Customize Scrolling Dialogue UI

Re: Removing speaker name when dialogue is consecutive

Posted: Tue Apr 08, 2025 2:45 am
by Rockoo
Great - that's perfect thanks!!

Re: Removing speaker name when dialogue is consecutive

Posted: Tue Apr 08, 2025 6:17 am
by Rockoo
Sorry just as a brief follow up. That's working for the text separation but I would also like there to always be the player and NPC portrait showing from the start of any conversation. NPC works fine as is but player only appears for the first time at the first response menu, and then does remain there for the rest of the conversation.

Do you know how I could make it so that the player portrait is shown from the start of any conversation? I tried adding the 'SetPCPortrait' method to the OnConversationStarts events in the main dialogue panel but the method isn't showing up, I presume because it is meant to be applied to transforms? But I'm assuming some variant of this approach is what will work.

Thanks for your help.

EDIT: doesn't matter I figured it out - just made a little helper script to set the portrait manually and realised I had forgotten to make it public! Is now working perfectly on OnConversationStart. Thanks again.