Detect response via trigger

Announcements, support questions, and discussion for the Dialogue System.
ricjonsu098
Posts: 45
Joined: Sat Jul 30, 2016 8:37 am

Re: Detect response via trigger

Post by ricjonsu098 »

what I meant is, even when the player chooses an answer, the next dialogue does not come up when i lower the chars/second, when in fact, it should come up immediately when the player chooses an answer
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect response via trigger

Post by Tony Li »

Temporarily set your Dialogue Manager's Debug Level to Info.

This will log many details about the conversation to the Console window. Look for lines similar to these:

Dialogue System: Starting conversation 'Quiz Conversation', actor=Player (UnityEngine.Transform), conversant=Private Hart (UnityEngine.Transform).
Dialogue System: Private Hart says 'What is 1+1? (A) 1 (B) 2 (C) 7 (D) 42'
Dialogue System: Sequencer.Play( WaitForMessage(ChoseResponse)@0 )
Dialogue System: Sequencer: SetVariable(Response, B)
Dialogue System: Sequencer.Play( SendMessage(OnSequencerMessage, ChoseResponse, Dialogue Manager)@0 )
Dialogue System: Sequencer: WaitForMessage(ChoseResponse) received message
Dialogue System: Add Link (NPC): ID=1:4 'B is correct!' (True)
Dialogue System: Private Hart says 'B is correct!'

When you trace through the log, pay special attention to the Sequencer.Play messages. You may be able to identify where it's not behaving the way you intend.
Post Reply