I have some knowledge of the game engine you use, and have developed small novels. (My job is to produce and plan low-end pixel graphics games) I have helped several authors before, of course, all on a voluntary basis.
Some ideas can actually be achieved by relying on a specific variable, and some can be achieved by using branches. I will try to help you set up a simpler tree diagram for your reference. I hope this will be helpful to your game design.
Please forgive me that my native language is not English, I had to use translation software, I know it is strange, but I still try to help you...