Is there a way to warp to the selected sentence in the conversation log?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gaku2_sigehiro
Posts: 36
Joined: Sun Jul 14, 2024 2:35 am

Is there a way to warp to the selected sentence in the conversation log?

Post by gaku2_sigehiro »

Hello.
We are currently implementing a conversation log, but is it possible to select a specific sentence in the conversation log and warp to that conversation?
I can't rely on my own ability alone, so if there is a way, I would appreciate it if you could let me know.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Is there a way to warp to the selected sentence in the conversation log?

Post by Tony Li »

Hi,

If you need track of the dialogue entry ID, you can start a new conversation at that ID using the C# method DialogueManager.StartConversation():

Code: Select all

DialogueManager.StartConversation("title", player.transform, npc.transform, entryID);
If the conversation is already active, you can use DialogueManager.conversationController.GotoState(DialogueManager.conversationModel.GetState()):

Code: Select all

var entry = DialogueManager.masterDatabase.GetDialogueEntry(DialogueManager.lastConversationID, entryID);
DialogueManager.conversationController.GotoState(DialogueManager.conversationModel.GetState(entry)); 
gaku2_sigehiro
Posts: 36
Joined: Sun Jul 14, 2024 2:35 am

Re: Is there a way to warp to the selected sentence in the conversation log?

Post by gaku2_sigehiro »

We confirmed that you can jump directly to the conversation. thank you.
I also wanted to find out how to jump from the conversation log, but that would require a lot of effort to adjust the display, so I decided not to do it due to the amount of man-hours involved.
However, the warp function itself seems to be usable, so I think I'll use it somewhere.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Is there a way to warp to the selected sentence in the conversation log?

Post by Tony Li »

Glad you got it working!
Post Reply