Basically, I am working on a bot where I am trying to make a sort of RPG system which is entirely text-based.
I got all my database planned out well, but I'm stuck at one single problem where I don't know how to make a proper dialogue system on a pure server-side game?
Currently I have made it so that one table contains all messages that needs to be forwarded to the user. It contains its own variable system so I won't need similar messages to replace simple things as "She" and "He" for example.
To dumb it down even more, I want to make the user bound to a chain of events as if a user talks to someone, he needs to answer that person with "Yes" or "No" while being unable to perform other commands in this text-based game such as "Use item" or whatever it might be.
I'm really just grasping for theories here, all to get a solid idea of what type of dialogue system I should use. I have thought of having a field in the user table that contains a value of what the user is currently doing, or perhaps is pointed to a message id in the messages table (messages table also containing fields for the commands he can perform and what they will lead to), but it feels very sketchy. I mean I'd be surprised if you can even understand what I'm trying to say.
Many thanks in advance, Will.