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

# Re: Generic "wake up when someone enters room" object

- Date: Tue, 28 Nov 1995 02:58:53 PST
- From:
- cc: Lionel Clark <bishop@abbey.cuug.ab.ca>, moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <Pine.BSD.3.91.951128004039.6805C-100000@vespucci.iquest.com>

    On Mon, 27 Nov 1995, Edward Goff wrote:

    > Okay here's the next question.  Does anyone know of a way to have a verb
    > program'd even if I have to put it on an object, so that if I walk from
    > point A to D it would draw an Ascii map using $note and drop said $note
    > in a set room?

    You can maintain a list of your locations and the direction in which you
    moved to get to each one (probably best done by giving yourself a
    :moveto() verb that after pass()ing would record its arguments to a list
    somewhere) and then at the end of your route you could issue an @mapify
    command to convert this list into an ASCII drawing.

    The catch is that you could only walk through exits having one of a
    defined set of exit names that correspond to a set of 2D directions.  Thus
    if I'm only walking through exits named "north", "south", "east" and
    "west" it's no problem, but how would I represent "Red door" or "Out", for
    instance?  If you define these particular terms into your set of names and
    give them directions (perhaps diagonal lines or something) I suppose it
    would work, but you'd have to pick your directional set carefully.

    Colin/Snowfall

References:

- Re: Generic "wake up when someone enters room" object

- From: Edward Goff <egoff@iquest.com>

- Prev: Re: Generic "wake up when someone enters room" object
- Next: Re: Generic "wake up when someone enters room" object
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index