Saving dialogue choices

Forums 💬 NodeCanvas ⚙️ Support Saving dialogue choices

  • This topic has 0 replies, 2 voices, and was last updated 4 years ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15924
    marta.menac
    Participant

      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?

       

      Thank you

      #15925
      Gavalakis
      Keymaster

        Hello there,

        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!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.