Page 1 of 1

I have a question creating a conversation history

Posted: Mon Jul 10, 2023 2:55 am
by swang
I want to proceed with the conversation with NPC like Zelda Tears Of Kingdom, and when I press a specific button, I want to see the history of the conversations and options we've had so far.
How can I check the name of the player, the result of your selection, the name of the NPC, and the conversation history in a new panel?

![image](https://github.com/ethrad/Eden-of-Birds ... cb1e30c9c1)

If you are using an ConversationLogger, please tell me how to use it

Re: I have a question creating a conversation history

Posted: Mon Jul 10, 2023 9:52 am
by Tony Li
Please see this example. It provides code to view a conversation history and also to play the voiceover audio of each line in the history.

Re: I have a question creating a conversation history

Posted: Wed Jul 12, 2023 12:40 am
by swang
Thank you, we were able to create a successful conversation.

However, the entire conversation is being printed out. I just want to print out the conversation script that is currently playing, is there a way? (I'm using the same database, and only the conversation ID is in a different state.)

Re: I have a question creating a conversation history

Posted: Wed Jul 12, 2023 1:06 am
by Tony Li
Yes, the Backlog example and the ConversationLogger.cs script included in the Dialogue System both demonstrate how to record the history of the current conversation.

Re: I have a question creating a conversation history

Posted: Thu Jul 13, 2023 4:08 am
by swang
I want to show one conversation log in Backlog.
but when I play "Conversation2" after "Conversation1", there are two conversation logs(Conversation1 + Conversation2) in Backlog
What can I do?

Re: I have a question creating a conversation history

Posted: Thu Jul 13, 2023 8:30 am
by Tony Li
Hi,

In that case, add this method to the script:

Code: Select all

void OnConversationStart(Transform actor) { log.Clear(); }