Hi.
I'm using Dialog[thisID].SimStatus ~= "WasDisplayed" to have each node appear only once. However, I want my conversations to be reusable. How can I reset the conversation so that the next time all the nodes would be available?
Resetting conversation
Re: Resetting conversation
Hi,
You could reset SimStatus at the end of the conversation. For example, add a script with this method to the Dialogue Manager GameObject:
You could reset SimStatus at the end of the conversation. For example, add a script with this method to the Dialogue Manager GameObject:
Code: Select all
void OnConversationEnd(Transform actor)
{
var conversation = DialogueManager.masterDatabase.GetConversation(DialogueManager.lastConversationID);
conversation.dialogueEntries.ForEach(entry => DialogueLua.MarkDialogueEntryUntouched(entry));
}