Find
You are looking at a material called door
This door material checks the linkstate of the acting door to work out if its open or closed and displays messages accoringly.
Reactions:
say
Materials:
{none}
Created by
wolis
, last updated 23 Dec 2007
Code
if reacting to say then echothru;
if reacting to ask then echothru;
##echothru:
$link = $actor's link;
$far = $link's loc;
if $far > 0 then echothru1;
##echothru1:
if $far ne $loc then echothru2;
##echothru2:
if $actor ne $init_obj's loc then echothru3;
##echothru3:
if $actor's linkstate eq 0 then mumble;
$echo = "From [$link] you here $init_msg";
msg $far,$init_obj,0,0,'msg',$echo,$init_obj,'say',0;
##mumble:
$how = (muffled,muted,indistinguishable,faint,inaudible,mumbled);
$snd = (talking,sounds,voices,discussions,chatter,communication);
$init_msg = "$how $snd";