Get responses from active conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kenlem
Posts: 26
Joined: Sun Aug 16, 2020 5:19 pm

Get responses from active conversation?

Post by kenlem »

Is there a way to get the responses array from an active conversation?

Thanks.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get responses from active conversation?

Post by Tony Li »

Hi,

Yes. Check DialogueManager.currentConversationState. There are two Response[] array properties: npcResponses and pcResponses. The player menu responses are in pcResponses.

You can also add a script with an OnConversationResponseMenu(Response[] responses) method to the Dialogue Manager or a conversation participant.
kenlem
Posts: 26
Joined: Sun Aug 16, 2020 5:19 pm

Re: Get responses from active conversation?

Post by kenlem »

Thanks!
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get responses from active conversation?

Post by Tony Li »

Happy to help!
Post Reply