In "Improving Nanny/Cleaning it up" Jason wrote:
> As I began doing this, nanny is just becoming bigger and
> bigger and there's more cases and more cases and it just seems like there 
> should be a better, cleaner
> way to do this.  Has anyone else tackled making nanny more readable, concise 
> or have any suggestions on
> different approaches to nanny.  I'm just looking for general ideas or 
> experience no code or anything.

When someone connects to my mud, they give a name and a password
and then after a warning scrfeen about client settings, they are
in the game. I made a special race, Zygote, and a class, Commoner,
so they don't run afoul of various commands that look for stuff in
their struct. I made commands to let them choose their race, class,
and gender in the first few rooms of school. Otherwise, gain handles
nearly everything else. Unless states are really evil, the only code
clean-up was the 'customize' stuff being replaced by gain. The race
and class stuff just moved to the command table. But it was easy and
it works, is my point.

Also, I added a filename field to the pfiles so Name could have
spaces (yup, ROM has no trouble, it's the 'nix system). I've often
considered accounts like Circle (?) has. I'd also considered doing
something about name checking on notes. Hmmmmmm.....  :) All you'd
have to do is add a digit to the filname. So, I connect and create
a "sorcha" account. Then you ask for a character name, I say
'Keriwena' and create a sorcha_1 pfile. Maybe the account should
have a name like A_sorcha so you could easily separate them with an
alpha sort and browse them. Or maybe size would do. I'm only thinking
with one hand as I eat lunch....

 
Sandi                            

                  "I have not yet begun to code!"

[EMAIL PROTECTED]                           blades.inetsolve.com 3333


Reply via email to