MOO-cows Mailing List Archive

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

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




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:

Home | Subject Index | Thread Index