Hi, Tony!
I was wondering how to load into a string a text from a specific node of a conversation.
Thanks!
Load a text from a node
Re: Load a text from a node
Hi,
How will you identify the dialogue entry node? If you have the conversation ID and dialogue entry ID:
(EDIT: Fixed typo.)
The currentDialogueText property takes into account the current language, if you've localized your database. If you want the original Dialogue Text, use the DialogueText property. If you want the original Menu Text, use the MenuText property.
How will you identify the dialogue entry node? If you have the conversation ID and dialogue entry ID:
Code: Select all
var dialogueEntry = DialogueManager.masterDatabase.GetDialogueEntry(conversationID, dialogueEntryID);
string text = dialogueEntry.currentDialogueText;
The currentDialogueText property takes into account the current language, if you've localized your database. If you want the original Dialogue Text, use the DialogueText property. If you want the original Menu Text, use the MenuText property.
Re: Load a text from a node
conversation.GetDialogueEntry only acept string, not 2 int parameters...
I have only the conversation name and the id entrys...
I have only the conversation name and the id entrys...
Re: Load a text from a node
Sorry, I meant to type DialogueManager.masterDatabase, not conversation. I had typed something else and then changed it. I just fixed it in my reply above.
Re: Load a text from a node
Thank you so much Tony!
Re: Load a text from a node
Happy to help!