How to simplify a choice-driven dialogue system I made?

Could you elaborate what you mean by struct?