Using continue button to finish conversation

Announcements, support questions, and discussion for the Dialogue System.
lucasbender
Posts: 10
Joined: Wed Nov 06, 2024 3:34 pm

Using continue button to finish conversation

Post by lucasbender »

Hi!

My dialogues don't use the "continue" button skip feature, but I would like to keep it only when the conversation ends, like a 'finish' button.

In the Dialogue System Controller, I enabled the 'Require Continue on last line' option, which works great for the first dialogue. However, as soon as another dialogue starts, the button stays active, ignoring the fact that I only want it to appear at the end of the conversation. Is it possible to achieve what I need using this option? Is there a better option?

My Dialogue System Controller:
Captura de tela 2024-11-11 130947.png
Captura de tela 2024-11-11 130947.png (48.4 KiB) Viewed 262 times
My "Continue button" settings:
Captura de tela 2024-11-11 131201.png
Captura de tela 2024-11-11 131201.png (31.75 KiB) Viewed 262 times
Thanks!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using continue button to finish conversation

Post by Tony Li »

Hi,

Are you sure the "Require Continue On Last Line" is doing it? Is something else perhaps calling a SetContinueMode() sequencer command? "Require Continue On Last Line" by itself should only affect the last line.
lucasbender
Posts: 10
Joined: Wed Nov 06, 2024 3:34 pm

Re: Using continue button to finish conversation

Post by lucasbender »

Hi Tony!



I recorded a video to show the behavior. When interacting with people, the first dialogue appears. This one is correct, the blue button is my 'Continue button,' which closes the conversation. When interacting with the table, the second dialogue appears. Note that the blue button has been there from the beginning, even overlapping with the response panel.

If you need any more images that could help understand the issue, I can send them. Since this is for a client, I need to cover a few things, like I did with the responses in the video, but there’s no problem for me.

Regarding your other question, when I disable the 'Require Continue On Last Line' option, the conversation closes automatically as soon as the last line appears. I believe this is the normal behavior.

I’m still in the early stages of implementation, so I haven’t used 'SetContinueMode()' anywhere. I'm using the SMS dialogue UI, by the way. As you mentioned, I think the option I selected should only apply to the last line of the conversation, which is why I got confused with the result.

Thanks for your response!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using continue button to finish conversation

Post by Tony Li »

Hi,

Assign the Subtitle Text GameObject's typewriter effect component to your continue button's StandardUIContinueButtonFastForward component's Typewriter Effect field.

Is the continue button assigned to your subtitle panel's Continue Button field?
lucasbender
Posts: 10
Joined: Wed Nov 06, 2024 3:34 pm

Re: Using continue button to finish conversation

Post by lucasbender »

Hi again, Tony!

I'm using two Subtitle panels, just like in the SMS sending example. As I show in the video, I need both the player’s and the NPCs' subtitles to appear in the same panel, so I set it up this way:
Captura de tela 2024-11-12 170844.png
Captura de tela 2024-11-12 170844.png (14.07 KiB) Viewed 224 times
The Continue button is linked to both panels, the player’s and the NPCs'. This is my current setup for the Subtitle Panels:
Captura de tela 2024-11-12 171059.png
Captura de tela 2024-11-12 171059.png (74.74 KiB) Viewed 224 times
Applying the Typewriter effect to the Continue button, as you suggested, didn't work. I don't actually plan to use the typing effect in my game, by the way.

Thanks for your attention! I think I might have done something wrong by mixing the standard assets with the SMS example. Even so, the implementation is working well, it's just this damn blue button that's bothering me lol.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using continue button to finish conversation

Post by Tony Li »

The "just get it working" solution is probably to inspect the Dialogue Panel's UIPanel component and configure the OnClose() event to deactivate the continue button.

If you don't want to do that for some reason, please let me know if you're using the SMSDialogueUI component or StandardDialogueUI component.
lucasbender
Posts: 10
Joined: Wed Nov 06, 2024 3:34 pm

Re: Using continue button to finish conversation

Post by lucasbender »

I tried using the OnClose and even the OnOpen events to disable this button, but it keeps appearing. I think it's not able to detect what is the 'last line' of the conversation for some reason.

I noticed something interesting: if I use a dialogue like the one in the image below, which has multiple NPC responses before the end, the button already appears on the message marked in blue. It should always consider the last node as the 'last line,' right?
Captura de tela 2024-11-12 190021.png
Captura de tela 2024-11-12 190021.png (31.37 KiB) Viewed 213 times
Anyway, I’m using the SMSDialogueUI. Here’s its current configuration:
Captura de tela 2024-11-12 190504.png
Captura de tela 2024-11-12 190504.png (93.71 KiB) Viewed 213 times
Captura de tela 2024-11-12 190527.png
Captura de tela 2024-11-12 190527.png (43.08 KiB) Viewed 213 times
Thank you very much for your time! :)
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using continue button to finish conversation

Post by Tony Li »

Hi,

Are you running multiple simultaneous conversations?

If Require Continue On Last Line is the only thing that shows the continue button, then it should only appear when the current conversation state doesn't link to any other valid nodes. So maybe something else is making the continue button appear.

Would it be possible for you to send a reproduction project to tony (at) pixelcrushers.com?
lucasbender
Posts: 10
Joined: Wed Nov 06, 2024 3:34 pm

Re: Using continue button to finish conversation

Post by lucasbender »

Hello! No, I'm running one conversation at a time. I even checked if the conversations were being finalized using Debug, and everything seems fine.

I will try creating a new project and follow the same implementation steps I used in this one. As soon as I find an easy way to reproduce it, I'll send the files.

Thank you!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using continue button to finish conversation

Post by Tony Li »

Thanks! I could send you an example scene that I think works the way you want, but I'm not sure it would help you get your own scene working. However, if you want me to put together that example scene instead, let me know.
Post Reply