Page 1 of 1
Dialogue system events OnConversationEnd does not trigger
Posted: Sun Aug 11, 2019 9:56 am
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!
Re: Dialogue system events OnConversationEnd does not trigger
Posted: Sun Aug 11, 2019 11:28 am
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.
Re: Dialogue system events OnConversationEnd does not trigger
Posted: Sun Aug 11, 2019 11:42 am
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!
Re: Dialogue system events OnConversationEnd does not trigger
Posted: Sun Aug 11, 2019 12:01 pm
by Tony Li
You don't always have to manually assign the GameObjects. See here for details:
Character GameObject Assignments.