# Generic "wake up when someone enters room" object

Matt Pauker (mpauker@peganet.com)
Tue, 28 Nov 1995 13:37:27 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    At 5:18 PM 11/27/95, Lionel Clark wrote:
    >> = Darrell Berry
    >
    >>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)
    >>
    >>Suggestions?
    >
    >        Here's one I think I may have the answer for - play with
    >the TELL() verb on the object itself.  If I'm not mistaken, the
    >code that is executed when an object enters a room usually uses
    >:tell() to let everyone know when someone enters or leaves a
    >room.
    >
    <snip>

    Actually, the better way is to use the room's :enterfunc verb...

    Matt Pauker