Behavior trees for dialogues

Hello!
I am trying to build dialogues using AI trees. I am wondering how I could add or hide certains replies my character can answer based on what they found out in the game.
I was thinking about making a bunch of booleans and then checking if they are true or false in my tree and display the corresponding answers in a selector. But this sounds overcomplicated and I wonder if there is another way around this?

I would also want my character to ask certain questions only once and then they wouldn’t be available anymore, but I would stay on the same tree. Would you know how to do this?

Thank you!

1 Like