Re: isname() improvement

From: Alex (fletchra@qsilver.queensu.ca)
Date: 06/26/00


> This may be a dumb question, but doesn't using the . character mess up the
> "look 2.guard" capability?
Nope, the '2.' bit is taken care of in the get_char_room_vis() (or
whatever the precise name is).  So, you can have:
  look 2.green.guard
and it'll get passed to 'get_char_room_vis()' as:
  '2.green.guard'
Which'll strip off the '2.' and note that it wants to look for the second
character in the room (that is visible) that matches that name and for
each character do an is_name() on 'green.guard', which is_name() then
takes and compares 'green' first, and if that matches, does a compare on
'guard'.  If that matches, returns TRUE.  Otherwise, buggers out with a
FALSE.

Ae.


     +------------------------------------------------------------+
     | 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