Ok, how do I sell eggs and then make thr eggs hatch into montsers that can attack mobs, follow you, and evolve?
I pretty much have a slight feeling of what someoen migth say when respondign to this post... >_<
ID:268561
Aug 29 2004, 9:26 am
|
|
For a more serious answer... First you need to create your "eggs". You need to decide what type of information you need to know about the eggs. You need to decide what you can do with the eggs. You also have to decide where in the big scheme of things that an /egg would go. Here's an example of a possible egg:
Of course, lots of this probably isn't what you want at all in your vision of an "egg". That's why it pays to be descriptive. Even if you're trying to do it yourself, if you have your general plan written down, it's easier to program what you want.
Also, if you don't want to use spawn as in the Hatch() example, here's another possible way of programming it:
. is the default thing that gets returned. So when src gets deleted, I think that the procedure will end up returning the new mob stored in "."