I have a question creating a conversation history

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

I have a question creating a conversation history

Post 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
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have a question creating a conversation history

Post 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.
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

Re: I have a question creating a conversation history

Post 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.)
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have a question creating a conversation history

Post 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.
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

Re: I have a question creating a conversation history

Post 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?
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have a question creating a conversation history

Post by Tony Li »

Hi,

In that case, add this method to the script:

Code: Select all

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