Is there an event for when a Response Menu appears?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
LostTrainDude
Posts: 69
Joined: Wed Mar 21, 2018 2:14 pm

Is there an event for when a Response Menu appears?

Post 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!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
LostTrainDude
Posts: 69
Joined: Wed Mar 21, 2018 2:14 pm

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

Post by LostTrainDude »

Ooh thank you! Completely missed those, I apologize!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply