Hello, I have an issue with Dialogue trees. The game I am making requires the player to choose the answer. This is pretty straight forward with the multiple choice node. The problem is I want to save that choice. What I had in mind was saving something like GraphID – NodeID – ChoiceID. No problem getting node or choice ids, but I cannot find a way to get a persistent graph id so I can save it and load it when I need to.
Is there a way to do it like that? Or is there another way to save the choices?
Hmm. Considering I understand correctly what you mean by saying “save choices”, then in the example Dialogue Tree (downloadable examples file). I am saving choices by setting (and checking) a boolean blackboard variable for each choice that needs to be saved.
Blackboard Variables on their turn can also be saved/loaded (to json or player prefs) so the choices (in this case) would become persistent between game sessions. Please let me know if that works for you, or if I misunderstood your question. 🙂
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.