Re: Comparing with SMAUG

From: Sammy (samedi@DHC.NET)
Date: 07/31/97

On Thu, 31 Jul 1997, Desmond Daignault wrote:

> I also have done and am almost totally finished with this project.  I
> basically used the tag system that was developed for our own ascii pfile.
> Along with this, I combined the wear_off and other spell related messages
> (other than the damage messages, I saw no need to mess with it.) into the
> spell struct.  Basically, if it isn't in the text spell file (tag not
> there that is), the value would default to 0.  So.. skills just need the
> level list, and a name, and not much else. While spells use most of the
> tag values.
> I don't recommend this method for the faint of heart. As it has taken me
> several months to get the bugs worked out. Mostly because I yanked out all
> of the existing spell code and replaced it with an event driven one.

Yeah it can get pretty involved.  My system is pretty similar, tho instead
of being event based, mine is more of a pulse based system.  Instead of
building up mana, casting spells, repeat, you cast a spell, and over time
you "charge up" until you've got enough mana, at which time the spell
fires off, assuming you haven't lost concentration.  Instead of the stock
system of getting a bigger "mana battery" as you advance in levels, your
rate of charge increases, so you can cast faster.  Theoretically you could
cast a high level spell at a low level if you have a few real hours to

> The main reason I have been putting most things into Ascii files is the
> fact that I hate "mile" long array initializations, like the spell table
> was getting to be. Next on my list is the command table...

Are you planning on putting the command table in an ascii file?  I'm
thinking of adding case statements to sperate the commands by first letter
as in the tag system or possibly using a hash on the first letter or two.
Other than the lookup speed and the socials mixed in with real commands, I
don't have a problem with the command structure.  Socials are definitely
going into a file when I get around to it.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST