Re: isname() improvement

From: Damian Jurzysta (interact@hem.passagen.se)
Date: 06/26/00


Hello George.

On 20-Jun-00, you wrote:

GG>> on some muds I have seen you can add a '-' to the argument to make it more
GG>> exact. lets say want to look for a bronze plate mail, if you do a "cast
GG>> 'locate'bronze" you will probably get lots of hits on a variety of bronze
GG>> objects. instead you can do a "cast 'locate'bronze-mail" or even "cast
GG>> 'locate'bronze-mail-plate" to look more exactly for the object you want to
GG>> search for.
GG>>
GG>> since I want this to work on each and every command possible on my mud,
GG>> both for mobs and objects, I figured so far that I have to change the
GG>> isname() in handler.c, but I have no idea how to proceed next. can someone
GG>> out here help me out?
GG>
GG> That spell is a kludge.
GG>
GG> There's a patch somewhere (I know I made one) for 'char *' arguments to
GG> spells.  That's what you need.

that would be a pain changing all the commands since I want this to work with
all commands and not only spells (look monster-big, kill small-monster, where
medium-monster-ugly). I still believe the easiest approach is to change the
isname(). besides, I really like the hyphen as split symbol.
--
/Damian/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT