Page 2 of 2
Re: Detect response via trigger
Posted: Wed Aug 31, 2016 12:25 am
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
Re: Detect response via trigger
Posted: Wed Aug 31, 2016 9:35 am
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.