So, in brief, I need a way to have two types of dialogue systems.
There's one style that takes place on the overworld, that has been solved already.
Now, the second one is much in the style of Metal Gear Solid.
Basically two talking sprites. With an active animation while text is on screen (Typewriter effect).
I'm afraid to make a fool of myself so,
1) What is the method to have two dialogue managers in a scene and have them play nice. Should I be doing it in some different way?
2) Any tutorial or something recommended to get this result?
Re: Two Dialogue Styles? What Do?
Posted: Wed Sep 25, 2024 5:32 pm
by Tony Li
Hi,
You only need one Dialogue Manager.
Decide which dialogue UI is going to be used more often. Assign this one to the Dialogue Manager's Display Settings > Dialogue UI field.
Then, when you set up Dialogue System Triggers for conversations that will use the MGS-style UI, assign the MGS-style UI to the Dialogue System Trigger's Actions > Start Conversation > Override Dialogue UI field. To make this UI, you can start with a copy of one of the existing prefabs such as the Focus dialogue UI.
Or, if the MGS-style UI is only going to be used with one or more specific characters, you can add an Override Dialogue UI component to those characters and assign the MGS-style UI to those components.
Re: Two Dialogue Styles? What Do?
Posted: Sat Sep 28, 2024 9:16 am
by Littlenorwegians
Right, so I am one step closer.
One problem/challenge I am having. Which is the "emotion states" and how to do them.
Basically you have a default idle animation. Where the character is blinking.
Then there's a default talk animation.
But there's also the states of happy, sad and angry. Which have their own respective talk animations.
Happy_idle. Happy_talk. Basically. And the talk happens as long as the typewriter is going.
I use sprite sheets to achieve this and ideally I would like to swap out sprite sheets but have characters animate the same way. Ideally.
How do I set this up? Thank you tons for the help.
I've set things up as best I can but I'm having some issues. Highlighted my setup in this video.
(Pardon the audio at the end)
But yeah, I'm a little stuck. Honestly trying as best I can, but I figure it's quicker to ask while I work.
Re: Two Dialogue Styles? What Do?
Posted: Sat Sep 28, 2024 2:36 pm
by Tony Li
Hi,
1. In your dialogue database, assign a static portrait image to each actor's Portrait Sprites section.
2. Create GameObjects for Calico and Brindle if you haven't already.
3. Add Dialogue Actor components to the Calico and Brindle GameObjects.
Set the Actor dropdown to the corresponding actor.
Assign the actor's portrait image animator controller to Dialogue UI Settings > Portrait Animator Controller. It doesn't matter what's assigned to the CalicoPortrait and BrindlePortrait GameObjects' Animator components. When each actor speaks a line, their Dialogue Actor component will assign its Dialogue UI Settings > Portrait Animator Controller to the Animator component.
4. Inspect the subtitle panels' Standard UI Subtitle Panel components, and set Visibility to Always From Start.
Re: Two Dialogue Styles? What Do?
Posted: Sun Sep 29, 2024 8:05 am
by Littlenorwegians
Thank you!! Real close now. A few remaining problems;
1) I use TextMeshPro. The current standard UI Subtitle panels that I have only support 'text'. Can't find a TMPRO or other variant of the UI Subtitle panel so what do I do?
2) The sequence logic is a little iffy. You can see in this video it is very late to end. And if I hit the continue button at any point, he never goes back to idle, making it very easy to break the logic.
Re: Two Dialogue Styles? What Do?
Posted: Sun Sep 29, 2024 9:36 am
by Tony Li
Hi,
Littlenorwegians wrote: ↑Sun Sep 29, 2024 8:05 am1) I use TextMeshPro. The current standard UI Subtitle panels that I have only support 'text'. Can't find a TMPRO or other variant of the UI Subtitle panel so what do I do?
Enable TextMesh Pro Support. If you're using a typewriter effect, remember to add a TextMeshProTypewriterEffect component, not a UnityUITypewriterEffect.
Littlenorwegians wrote: ↑Sun Sep 29, 2024 8:05 am2) The sequence logic is a little iffy. You can see in this video it is very late to end. And if I hit the continue button at any point, he never goes back to idle, making it very easy to break the logic.
(I used the special keyword 'speakerportrait' to refer to the speaker's Portrait Image GameObject, but it's fine to specify CalicoPortrait and BrindlePortrait if you prefer.)
Re: Two Dialogue Styles? What Do?
Posted: Sun Sep 29, 2024 7:45 pm
by Littlenorwegians
Wonderful, wonderful. Thank you so very much
Everything now seems to be working 100%. I'll keep expanding and testing the system and get back here in case there is anything.