Portrait issue with multiple NPCs in a conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cablacks
Posts: 2
Joined: Mon Jan 13, 2020 3:04 pm

Portrait issue with multiple NPCs in a conversation

Post by cablacks »

Hello,

I'm having an issue where I'm not able to show a conversation between two NPCs where the NPC portrait images are facing each other. Currently, after the first NPC is done talking its portrait is replaced by the second NPC. I believe this is due to how the "StandardUISubtitlePanel" script differentiates between PC & NPC. (I am currently using the Basic Standard Dialogue UI with a few UI modifications)

I would like to have an NPC take over the "PC" section if the player is not in the current conversation node. However, I'm not sure the best way to go about updating this. Any help would be much appreciated!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portrait issue with multiple NPCs in a conversation

Post by Tony Li »

Hi,

Add a Dialogue Actor component to the second NPC. Set the Dialogue UI Settings > Subtitle Panel Number dropdown to Panel 1, which is typically the PC Subtitle Panel on the left side of the UI, such as in the Basic Standard Dialogue UI.

Some UIs may be slightly different. For example, if you're using the VN Dialogue UI template, panel 0 has the portrait on the right, panel 1 has the portrait on the left, and panel 2 has the portrait in the middle-right.

Other options:

If you want to show a character in a specific panel for a single dialogue entry node, add "[panel=#]" to the Dialogue Text, where # is the panel number.

If you want to show a character in a specific panel for the remainder of the conversation, use the SetPanel() sequencer command.
cablacks
Posts: 2
Joined: Mon Jan 13, 2020 3:04 pm

Re: Portrait issue with multiple NPCs in a conversation

Post by cablacks »

Worked perfectly. Thank you!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portrait issue with multiple NPCs in a conversation

Post by Tony Li »

Glad to help!
Post Reply