mud/
mud/2.4.5/dgd/include/
mud/2.4.5/dgd/std/
mud/2.4.5/dgd/sys/
mud/2.4.5/doc/
mud/2.4.5/doc/examples/
mud/2.4.5/log/
mud/2.4.5/obj/Go/
mud/2.4.5/players/
mud/2.4.5/players/lars/
mud/2.4.5/room/death/
mud/2.4.5/room/maze1/
mud/2.4.5/room/post_dir/
mud/2.4.5/room/sub/
object next;
object monster;
string chat_str;

/*
short() { return chat_str; }
*/

link(ob) {
    next = ob;
}

load_chat(str) {
    chat_str = str;
}

set_monster(m) {
    monster = m;
}

chat(nr) {
    object room;

    if (nr == 0){
	room = environment(monster);
	if(room)
	    return tell_room(room,chat_str);
    }
    nr -= 1;
    if (next)
	return call_other(next, "chat", nr);
    else
	return 0;
}

remove_chat(str) {
    if (str == chat_str) {
	destruct(this_object());
	return next;
    }
    if (next)
	next = call_other(next, "remove_chat", str);
    return this_object();
}

collaps()
{
    if(next)
	call_other(next, "collaps");
    destruct(this_object());
}

drop() { return 1; }