Reply To: Backtrack/Undo in DialogueTree

NodeCanvas Forums Support Backtrack/Undo in DialogueTree Reply To: Backtrack/Undo in DialogueTree

#12788
Gavalakis
Keymaster

Hello again,

Hmm. Considering I understand correctly, one solution to go about this, would be to change the “Start” node dynamically in runtime, so that the next time the Dialogue starts, it does so from that new “Start” node. To change the “Start” node you would of course need to somehow get a reference to the node you want. The easiest way, would probably be to use Tags on the nodes you want to manage through code.

Here is an example code on how to set the “Start” node of the dialogue to another node which we get by it’s Tag name.
(Node tags can be set in the node inspector by the way).

Please let me know if that solution works for you.
Thank you.

Join us on Discord: https://discord.gg/97q2Rjh