Page 1 of 1

Is there an event for when a Response Menu appears?

Posted: Thu Oct 15, 2020 7:41 am
by LostTrainDude
[Unity 2019.4.12f1 - DS v2.2.11]

Hi!

I need for an event to be triggered when a Response Menu appears. I noticed there's an event for when a Response is Selected (SelectedResponseHandler in the DialogueManager.conversationView) but I can't seem to find one for when a Response Menu appears. Is there one?

I tried checking the online documentation but I haven't found anything, apparently. Of course it is entirely possible that it's there and I'm just missing it!

For a temporary workaround I tried using a custom Sequence in the last subtitle before a Response Menu appears, but I noticed that, if I skip the line, the Sequence is not triggered entirely. It has to be said that, in this case, the last element of the sequence waits for a message:

Code: Select all

AudioWait(entrytag)->Message(next);
SetActive(gameObjectToActivate, true)@Message(next); // This won't run if I skip
So I suppose that the message only gets broadcasted when the previous element of the sequence actually reaches the end.

As always, thanks in advance!

Re: Is there an event for when a Response Menu appears?

Posted: Thu Oct 15, 2020 8:31 am
by Tony Li
Hi,

There are a lot of events, including when a response menu appears. See: Script Messages. You can also use a Dialogue System Events component to get those events as UnityEvents.

Re: Is there an event for when a Response Menu appears?

Posted: Thu Oct 15, 2020 9:11 am
by LostTrainDude
Ooh thank you! Completely missed those, I apologize!

Re: Is there an event for when a Response Menu appears?

Posted: Thu Oct 15, 2020 2:37 pm
by Tony Li
Glad to help!