Removing speaker name when dialogue is consecutive

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rockoo
Posts: 5
Joined: Fri Apr 04, 2025 4:44 pm

Removing speaker name when dialogue is consecutive

Post 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 718 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.
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Removing speaker name when dialogue is consecutive

Post 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
Rockoo
Posts: 5
Joined: Fri Apr 04, 2025 4:44 pm

Re: Removing speaker name when dialogue is consecutive

Post by Rockoo »

Great - that's perfect thanks!!
Rockoo
Posts: 5
Joined: Fri Apr 04, 2025 4:44 pm

Re: Removing speaker name when dialogue is consecutive

Post 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.
Post Reply