Sign in to follow this  
bdahlka

text based MMORPG

Recommended Posts

Before I can explain exacly the type of game I would like to build please take a look at this site http://www.mafiacorruption.com. I would like to make a text based browser game similar to this one. Different theme but the dynamics of the game would be the same. Basically I have knowlege of html, CSS, xhtml, and just recently bought some literature on PHP and MYSQL and I am getting the hang of making data bases and how to communicate with the database using PHP. I am unsure of how some of the features work such as The attack option. Basically if you attack someone with lower stats then you. You are victoriouse and are rewarded with exp points. Is this just done with "IF" and "THEN" statements or is there an easier method that I should be looking at? Please any help for this Newbie with a lot of time his hand and the patients to learn. Thanks in advance, Blake

Share this post


Link to post
Share on other sites
Quote:
and the patients to learn


Oh my, shouldn't patients be resting in bed? :)

Quote:
just recently bought some literature on PHP and MYSQL


Both of those are good choice, but you may find that you won't be getting exactly real-time response.

Quote:
Is this just done with "IF" and "THEN" statements or is there an easier method that I should be looking at


Depends. For trivial actions, you can use just that.

The "easier" here would mean manageable. As the number of interactions increase, if/then paradigm will become a nightmare to maintain.

To extend that, you'd usually resort to some form of table based actions. Have a table that contains a list of all attack moves, damage dealt, blocked, and other rules, then simply check against that. Good thing here is that in order to change the rules, you only need to change the table, even while the server is running.

Quote:
Basically I have knowlege of html, CSS, xhtml


Those are good for presentation. If can manipulate DOM, you are pretty flexible already.

Share this post


Link to post
Share on other sites
bdahlka,

Another famous and well built text-based MMORPG is Legend of The Green Dragon, which is based on the old BBS game Legend of the Red Dragon (LoRD).

LotGD is written in PHP and uses CSS, XHTML, etc...just as you've indicated. And, fortunately for the world at large, LotGD is Open Source.

While the source may be a bit complicated to read for someone just beginning in PHP, etc...it'll definitely help you out as you become more experienced. It'll show you what's possible, stimulate your creativity, and give you a head-start in implementing a similar game of your own.

Good luck, and let us know how it comes along!

Share this post


Link to post
Share on other sites
Im not sure what you mean by Table based actions. How is this table created with a Database type application?

And as far as "not exacly real time" Why is this? Due to the lag in communication with the database?

Did you look at the example game? Is this how it was created? I looked at the script (which is still pretty intimidating) and Noticed it looks like there are tons of different databases.

I will be on here everyday untill I've got a grasp on this thing. I have an extremely boring job.

JWalsh,
Legend of the green dragon isn't really what I am talking about. That is a MUD game. I appreciate that your trying to help.

Thanks a lot

Blake

Share this post


Link to post
Share on other sites
I meddled with some browser-based games using PHP/MySQL before I decided to try out C++. I found the best way to learn was to just jump in and figure out ways to do it myself. Looking back, I can see there were easier/cleaner/more efficient ways to do a lot of things, but coming up with ways to do things on my own really helped me understand exactly how it worked, rather than just copy/pasting code and only vaguely understanding it. The downside to that, however, is that it will take a lot more time and patience, but in the long run you will probably be better off. If you have any specific questions, feel free to PM me. I can't say I'm anywhere near being a web developing guru, but I've been in the same spot you're in, and I can show you a couple projects I started, but never finished.

Share this post


Link to post
Share on other sites
Quote:
Original post by bdahlka
Im not sure what you mean by Table based actions. How is this table created with a Database type application?


I may be misunderstanding what he meant, but I believe what he means is that you would have a table in your database just for the different types of attacks, then in your script you would look up the requested attack in the database to find out how much damage it deals and such.


Quote:
Original post by bdahlka
I looked at the script (which is still pretty intimidating) and Noticed it looks like there are tons of different databases.


You COULD get by with only a couple tables, but it makes things a ton easier to store things like item stats, attack info, mob info, etc. in tables rather than hard-coding it.

Share this post


Link to post
Share on other sites
My understanding of a "MUD" game is one in which the characters creat a storyline that is constantly changing based on users inputs. The game I am interested in is one in which u build stats and respect by attacking different people and training

Share this post


Link to post
Share on other sites
Quote:
Original post by bdahlka
My understanding of a "MUD" game is one in which the characters creat a storyline that is constantly changing based on users inputs. The game I am interested in is one in which u build stats and respect by attacking different people and training


What you're describing is exactly what LotGD is. LotGD isn't a MUD in the traditional sense of having a text parser with linked rooms containing loaded objects, etc...

It's just a series of menus which allow you to enter the forest to kill monsters, go to the bank, go to the trainer to level your skills, and of course visit the weapon or armor shop to purchase new items. There is no storyline, no emotions, no command parser, etc...

I'd highly recommend you at least create a character and go kill stuff on LotGD before you diagnose it as "not what you're looking for".

Cheers!

Share this post


Link to post
Share on other sites
Quote:
Original post by bdahlka
My understanding of a "MUD" game is one in which the characters creat a storyline that is constantly changing based on users inputs. The game I am interested in is one in which u build stats and respect by attacking different people and training


99% of MUDs are games where you build stats and respect by attacking different people and training. MUDs are precisely where MMORPGs evolved from - Ultima Online was designed by one of the LegendMUD developers, and Everquest was so close to Sojourn MUD that it nearly went to legal action. MUDs are text-based MMORPGs. Web-based games like the one you talk about are a more distant relation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this