Conversation Triggerd twice after answer option

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OneManOnMars
Posts: 106
Joined: Tue Apr 05, 2016 9:37 am

Conversation Triggerd twice after answer option

Post by OneManOnMars »

Hey,

we have an issue with conversations that gives players the option to select an answer.

If this is the case and you go through the conversation very fast, the response after the selected answer is displayed twice in a row.
So, the same conversation node appears again after the button-press to advance.

Image

In addition, we get the info that the conversation gets triggered twice(which fits). But we don't know where.
Image

This does not happen if we remove the option to answer. (Conversant Nodes only).

Thank you for your help
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: Conversation Triggerd twice after answer option

Post by Tony Li »

Hi,

When you start a conversation, make sure to turn off the ability to start the conversation again until the first instance of the conversation has ended. See the Interaction Tutorial for an example of using Dialogue System Events to do this.

If you see an answer twice when spamming buttons, the response button probably isn't being disabled after being clicked. This can happen if your UI does some processing or action before reporting to the Dialogue System that a response has been clicked. If so, you should be able to resolve this by configuring the response button to set its Interactable property false and then call StandardUIResponseButton.OnClick. Also, are you using the Input System package? If so, make sure to use the latest version, as it may fix bugs related to input and UI buttons.
Post Reply