How to return to previous conversant node after ending the conversation?
Posted: Tue Apr 30, 2024 10:54 pm
I'm making a game where there are multiple NPC characters, and each one has their own dialogue trees. But I'm having trouble figuring out how the player can return to the last node the NPC spoke before the player decided to end the conversation.
More clarification/example:
NPC: "Hey!"
Player: a)"Hello!" b)"You look awesome!"
NPC: a)"What brings you here?" b)"Thanks for the compliment."
Player: a.1)"Pizza brings me here." a.2)"I'll talk to you later."(<- Ends conversation, and when the player probably goes off to talk to someone else. When they come back to this NPC, I want it to resume when the NPC asks "What brings you here?") b.1)"No problem! By the way, what's behind you?" b.2)"I'll talk to you later."(<- Ends conversation, and when the player comes back to this NPC, I want it to resume when the NPC asks "Thanks for the compliment.")
More clarification/example:
NPC: "Hey!"
Player: a)"Hello!" b)"You look awesome!"
NPC: a)"What brings you here?" b)"Thanks for the compliment."
Player: a.1)"Pizza brings me here." a.2)"I'll talk to you later."(<- Ends conversation, and when the player probably goes off to talk to someone else. When they come back to this NPC, I want it to resume when the NPC asks "What brings you here?") b.1)"No problem! By the way, what's behind you?" b.2)"I'll talk to you later."(<- Ends conversation, and when the player comes back to this NPC, I want it to resume when the NPC asks "Thanks for the compliment.")