Dialogue system events OnConversationEnd does not trigger

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
MFB
Posts: 6
Joined: Tue May 21, 2019 5:52 am

Dialogue system events OnConversationEnd does not trigger

Post by MFB »

Hello,

I've encountered a problem where the OnConversationEnd event of the dialogue system events script does not seem to trigger. In the past, it has only been every now and then but now I have it consistently happening.

Anyone here have any experience with this happening?

Thanks for the read!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue system events OnConversationEnd does not trigger

Post by Tony Li »

Hi,

The OnConversationStart and OnConversationEnd events are always called if Dialogue System Events is on the Dialogue Manager GameObject.

They are only called on a character if the character's GameObject is being used as the conversation's primary actor or conversant (e.g., assigned to the Dialogue System Trigger's Conversation Actor or Conversation Conversant fields). To check what GameObjects are being used as the primary actor and conversant, temporarily set the Dialogue Manager's Debug Level to Info. This will log a line similar to:

Dialogue System: Starting conversation 'XXX' with actor=YYY and conversant=ZZZ

Make sure the GameObject with the Dialogue System Events component is YYY or ZZZ.
MFB
Posts: 6
Joined: Tue May 21, 2019 5:52 am

Re: Dialogue system events OnConversationEnd does not trigger

Post by MFB »

Oh...

I haven't assigned those before but still had the action trigger in most cases even when it's blank.

Thanks for the heads up, I'll be sure to put the objects with the triggers into the actor or conversant slot from now on!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue system events OnConversationEnd does not trigger

Post by Tony Li »

You don't always have to manually assign the GameObjects. See here for details: Character GameObject Assignments.
Post Reply