When it comes to my issue, what I am trying to achieve is, when a player leaves a conversation and returns back to the NPC later, I want the conversation to continue from where it is left off.
At the moment, whenever player moves away from the conversation, the conversation ends and I receive the entryID of the dialogue in my script that was present at that moment when the conversation ends
Although, when I go back to the NPC to start another conversation, I couldn't figure out how to start the new conversation from the previous entryID I got from cancelling the previous conversation.
Code: Select all
DialogueManager.StartConversation("CustomerOrder", actor, conversant, dialogueEntryID);
I tried to call the above script from Dialogue System Events component(invoking from OnConversationStart), but it still starts the dialogue from the beginning. I know that it is calling the function, because Logs still show that there is no problem accessing the function.
Although if I assign the function that includes the above script to a button press, it works and starts the conversation from the previous entryID successfuly. Is there any way I can make this work when I start the conversation rather than pressing a separate unrelated button? Thanks for help in advance.