Hey!
Just a quick question on how to make NPC's talk to each other in this format
As of right now, when it plays, it only uses a single Text panel like this:
These were taken right after each other when you push the continue button.
I'd like it so when one character talks, it highlights on the right and the other highlights on the right when they are talking.
Allowing 2 NPC's to talk
Re: Allowing 2 NPC's to talk
Hi,
Examine how the VN Template Standard Dialogue UI prefab is set up. It has 3 subtitle panels. They all use the same text element, but they use different portrait images. Panel 0 = right, panel 1 = left, panel 2 = middle.
If you want an NPC to talk in panel 1 (left), add a Dialogue Actor component to its GameObject. Set the Actor dropdown to the NPC actor. Set Dialogue UI Settings > Subtitle Panel Number to Panel 2.
Note: You can also use the [panel=#] markup tag to show a dialogue entry in a specific panel, or the SetPanel() sequencer command to change the panel that an actor uses.
Examine how the VN Template Standard Dialogue UI prefab is set up. It has 3 subtitle panels. They all use the same text element, but they use different portrait images. Panel 0 = right, panel 1 = left, panel 2 = middle.
If you want an NPC to talk in panel 1 (left), add a Dialogue Actor component to its GameObject. Set the Actor dropdown to the NPC actor. Set Dialogue UI Settings > Subtitle Panel Number to Panel 2.
Note: You can also use the [panel=#] markup tag to show a dialogue entry in a specific panel, or the SetPanel() sequencer command to change the panel that an actor uses.
-
- Posts: 82
- Joined: Wed Mar 31, 2021 6:48 pm
Re: Allowing 2 NPC's to talk
I added a dialogue actor to subtitle panel 1, but it's still failing to actually put that specific npc there
Here are my settings:
Also my Standard Dialogue UI section.
For some reason, when the dialogue starts, the subtitle 1 panel turns itself off.
Here are my settings:
Also my Standard Dialogue UI section.
For some reason, when the dialogue starts, the subtitle 1 panel turns itself off.
Re: Allowing 2 NPC's to talk
Hi,
Subtitle panels will stay inactive until they're needed, unless Visibility is set to Always From Start.
Make sure to assign the Standard Dialogue UI component's Default NPC Subtitle Panel field. It looks like it might have been accidentally unassigned. It should probably be the default value of Subtitle Panel 0.
Did you put the Dialogue Actor component on the NPC GameObject? (Not the subtitle panel GameObject.)
See also: Character GameObject Assignments
It's possible that the GameObject you expect isn't being used for the NPC(s).
Subtitle panels will stay inactive until they're needed, unless Visibility is set to Always From Start.
Make sure to assign the Standard Dialogue UI component's Default NPC Subtitle Panel field. It looks like it might have been accidentally unassigned. It should probably be the default value of Subtitle Panel 0.
Did you put the Dialogue Actor component on the NPC GameObject? (Not the subtitle panel GameObject.)
See also: Character GameObject Assignments
It's possible that the GameObject you expect isn't being used for the NPC(s).
-
- Posts: 82
- Joined: Wed Mar 31, 2021 6:48 pm
Re: Allowing 2 NPC's to talk
Ah ok. I originally had dialogue actor part of the subtitle Gameobject.
What I did was put it on a separate Gameobject and add changed the subtitle panel setting on that gameobject to it's respective panel. So far it's working.
Thanks a ton for the help!
What I did was put it on a separate Gameobject and add changed the subtitle panel setting on that gameobject to it's respective panel. So far it's working.
Thanks a ton for the help!
Re: Allowing 2 NPC's to talk
Glad to help!