MOO-cows Mailing List Archive

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

Re: Visible Exits on MOO



Dan Knapp wrote:
> 
>         Hi. I have a problem with my rooms. Whenever I walk into a room, I
> just get the contents, and the description. That's not what I want. Well,
> actually, I do want it to list those things, but I also want the obvious
> exits. I checked the .obvious property on the exits, and they are infact 1.
> How can I make them listed?

Add these lines to $room:look_self

  exits = player:checkexits(player:obvious_exits(), this, exits);
  player:tell_ways(exits, this);
When you see the room description and contents is why look_self verb in
the room is called. Adding this you can see also obvious exits.
The .obvious prop is for use with @exits command and so...



References:

Home | Subject Index | Thread Index