[Prev][Next][Index][Thread]

# Re: Exit invisible!

- Date: Wed, 8 May 1996 10:37:21 PDT
- From:
- cc: moo-cows.PARC@xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-to: <Pine.SUN.3.91.960508180158.10923C-100000@barney.soi.city.ac.uk>

    On Wed, 8 May 1996, Levy T wrote:

    > are available. But with a 'look' command in the room, I can't see the exit.
    > In many MOOs, you can see all the exits while looking to the room.
    > Doesn't somebody know about that?
    > Is it due to the database?
    > Do I have to change the look or description verb?
    > Thanks,

    The logical thing to do is to modify $room:look_self to include a listing
    of exitis in the room.

    Here's the codee I wrote on one MOO for $room:tell_obvious_exits (tnt rxd),
    which should be called from $room:look_self.

     1:  if (exits = this:obvious_exits())
     2:    exit_names = {};
     3:    for x in (exits)
     4:      exit_names = {@exit_names, x:title()};
     5:    endfor
     6:    player:tell("Obvious exits:  ",
    $string_utils:english_list(exit_names));
     7:  else
     8:    player:tell("There are no obvious exits.");
     9:  endif

      --Chris                           cunkel@engin.umich.edu
        ResComp Network Support Technician, Bursley Hall
        "Invisibility is in the eye of the beholder."
        Home Page: http://www-personal.engin.umich.edu/~cunkel/

References:

- Exit invisible!

- From: Levy T <tlevy@soi.city.ac.uk>

- Prev: Re: Exit invisible!
- Next: Re: Exit invisible!
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index