Page 1 of 1
Is there a way to warp to the selected sentence in the conversation log?
Posted: Wed Sep 04, 2024 1:08 pm
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.
Re: Is there a way to warp to the selected sentence in the conversation log?
Posted: Wed Sep 04, 2024 3:04 pm
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));
Re: Is there a way to warp to the selected sentence in the conversation log?
Posted: Thu Sep 05, 2024 12:10 pm
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.
Re: Is there a way to warp to the selected sentence in the conversation log?
Posted: Thu Sep 05, 2024 12:47 pm
by Tony Li
Glad you got it working!