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

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

- Date: Mon, 27 Nov 1995 18:14:49 PST
- From:
- Cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <v02120d01acdfff226040@[194.73.168.39]>

    On Mon, 27 Nov 1995, Darrell Berry wrote:

    > Can someone point me at a simple object which performs an action at a (set
    > or random) interval _as long as there is someone in the location containing
    > it_, and which sleeps otherwise (don't want to be doing ANY processing when
    > there's noone around to see it)

    Take a look at MOO2000's $room, #88.  It has a random message routine
    that only runs when ACTIVE people are in the room.  It is invoked from
    :announce[_all[_but]]()...  Whenever someone does something in the room,
    AND there are random messages set AND a previous random message task
    isn't running, then it forks one for X seconds.  The task only runs in
    active rooms (wid people talking and stuff).  I checked to see how many
    people used random messages...  about 20 rooms have this feature enabled,
    but there has never been 20 random message tasks running.

    - Kipp

References:

- Generic "wake up when someone enters room" object

- From: darrell@shrine.cyber.ad.jp (Darrell Berry)

- 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