Original Post
I recently got into C++ programming (learning) at my workplace and thought programming a MUD might be a nice side project for fun, even if I never finish. Currently I'm using Visual Studio 2005 for development and have SQL Server Express available as a DB backend. The one major problem I can't wrap my mind around is how to handle multiple commands with delays? Take the following example: Player inputs: 1.) kill <target> 2.) [delay 2 seconds] 3.) kill <target> 4.) [delay 2 seconds] How would I handle this? Is it possible to handle it using some sort of threading or signals in the C++ code? (I haven't worked at all with signals, but if there's any good resources, feel free to post links.) I've also read about integrating scripts such a LUA. Is that the way to really go? One minor question I have is that many of the sample source codes seem to write data to files to persist things (players, room, objects, etc...). Is this just a convention or am I missing something less obvious? Are there any downfalls to using a database backend? Thanks for the help for anyone who answers.