How could I add logical branching conversation dialogue in C#
with XNA
? What I mean by this is a dialogue tree similar to this:
If the user is wearing red:
DisplayText "You're wearing a red shirt!"
Else:
DisplayText "You're not wearing a red shirt!"
The key is that I can't hard-code these logic questions into C#
itself; it has to be readable from some sort of external file and still executable.
My question is very similar to this question: How can I implement dialog trees into my game?
But my focus is more on how I can actually begin to implement this feature into my game.