EndConversation with continue button?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

EndConversation with continue button?

Post by fkkcloud »

Hi,

I have a conversation end with conversant (not player) actor.
The conversation just ends right once all the sequence runs out but I want to wait until the player does "Continue" button thing for just like the rest of conversation node processes.
What would be the best way to implement this?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: EndConversation with continue button?

Post by Tony Li »

Hi,

It should wait for the continue button like any other node.

Does the final node's Sequence turn off the continue button? If so, you can turn it back on using the SetContinueMode(true) sequencer command.
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: EndConversation with continue button?

Post by fkkcloud »

my bad, I was calling a custom sequencerCommand which load the next scene on the last node!
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: EndConversation with continue button?

Post by fkkcloud »

btw, quick question. (might be unity event thing too)

I am adding a callback function like so

Code: Select all

dialogueSystemTrigger.OnConversationStart += GameManager_Social.Instance.StartDateScene(...)
does this OnConversationStart event would deactivated once dialogueSystemTrigger's component owner/gameobject is destroyed as the scene is unloaded? (the gameobject is not a singleton or anything - just a normal gameobject)
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: EndConversation with continue button?

Post by Tony Li »

Hi,

DialogueSystemTrigger does not have an OnConversationStart event.

Are you looking for the DialogueManager.instance.conversationStarted event?

Code: Select all

DialogueManager.instance.conversationStarted += GameManager_Social.Instance.StartDateScene
Post Reply