I’m looking for suggestions of a method to create a dialogue tree that is pretty simple. Currently I have 2 methods:
- make individual variables for every single piece of dialogue (bad):
bobPartyDialogue1=dialogueBranch('Great party today, am I right?',{'Yeah!':bobPartyDialogue2,'No, this party is stupid.':bobPartyDialogueAngry})
- make 1 dialogue tree for each random piece of dialogue out of dicts and sets (bad and complicated):
bobdialogue={'what he says':{'option 1':('what he says',{"more options":('i hate you :(')}),'option 2':('what he says for option 2',{"nested options for option 2 #1":(';('),"nested options for option 2 #2":('meow')})}}
There won’t be a ton of dialogue but I’d like a good system to handle it. I’m pretty new to python, it’s just a hobby, so please be nice and any explanation is always welcome.