Page 1 of 1

EndConversation with continue button?

Posted: Mon Oct 12, 2020 3:48 am
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?

Re: EndConversation with continue button?

Posted: Mon Oct 12, 2020 9:32 am
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.

Re: EndConversation with continue button?

Posted: Mon Oct 12, 2020 1:39 pm
by fkkcloud
my bad, I was calling a custom sequencerCommand which load the next scene on the last node!

Re: EndConversation with continue button?

Posted: Mon Oct 12, 2020 3:18 pm
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)

Re: EndConversation with continue button?

Posted: Mon Oct 12, 2020 3:29 pm
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