Click here to Skip to main content
16,020,378 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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.
Posted
Comments
Sergey Alexandrovich Kryukov 15-May-11 18:09pm    
You're quite right in your doubts about these noted to be understandable. I hope this is just a result of very early thought on your architecture... At the same time, there is nothing fantastic or miraculous about database-backed architecture fitting dialog between the gamers and system (or each other?..) :-)
--SA
Sandeep Mewara 16-May-11 4:45am    
OP replied:
You're right, this is very early and I haven't gone further than to map the database. Ah, so it really was that hard to comprehend. Well I think I'll just make a new table for "conversations" or something and link it to messages in the "messages" table.
Qvazzler 15-May-11 18:19pm    
You're right, this is very early and I haven't gone further than to map the database.

Ah, so it really was that hard to comprehend. Well I think I'll just make a new table for "conversations" or something and link it to messages in the "messages" table.
Sandeep Mewara 16-May-11 4:45am    
If you reply to his comment, he will be notified.
Sergey Alexandrovich Kryukov 16-May-11 4:53am    
I know, thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900