Page 1 of 1
Get responses from active conversation?
Posted: Sat May 29, 2021 12:41 pm
by kenlem
Is there a way to get the responses array from an active conversation?
Thanks.
Re: Get responses from active conversation?
Posted: Sat May 29, 2021 3:02 pm
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.
Re: Get responses from active conversation?
Posted: Sat May 29, 2021 3:15 pm
by kenlem
Thanks!
Re: Get responses from active conversation?
Posted: Sat May 29, 2021 3:18 pm
by Tony Li
Happy to help!