Page 1 of 1

Do DialogueSystemEvents listen to any conversation?

Posted: Thu Sep 28, 2023 5:23 am
by Espes
Hello.
Do DialogueSystemEvents component listen and fire the events to any conversation or only the conversation that the gamebject is taking part?

Edit:found this in unity forum. Is it still relevant? What about the Player? I think you could include it the documentation.
The Dialogue Manager GameObject receives all "On Conversation End" events. An NPC will only receive the "On Conversation End" event if it is involved in the conversation.

If you add a Dialogue System Events component to the NPC (not the Dialogue Manager), its OnConversationEnd() event will only run when that particular NPC's conversation has ended.

The same is true for a Dialogue System Trigger component set to OnConversationEnd, or a script with an OnConversationEnd(Transform) method.

Re: Do DialogueSystemEvents listen to any conversation?

Posted: Thu Sep 28, 2023 8:08 am
by Tony Li
Hi,

Good catch. This table explains which GameObjects receive OnConversation*** events, but I need to do the same for the Dialogue System Events component's manual page.

Re: Do DialogueSystemEvents listen to any conversation?

Posted: Thu Sep 28, 2023 4:39 pm
by Espes
Thank you for the answer. I use ConversationZone with PlayerIsActor disabled. The Dialogue System Events fire normally in the NPCs but not in the player.
The setup in DIalogue Editor of Conversation is:
Actor: Player
Conversant: NPC

Re: Do DialogueSystemEvents listen to any conversation?

Posted: Thu Sep 28, 2023 7:24 pm
by Tony Li
Why is "Player Is Actor" unticked?

If you really must keep it unticked even though the conversation's actor is the Player, add a Dialogue Actor component to the player prefab and set its Actor dropdown to Player.