shore_e.c - example for course 11

[previous example] [course 11] [Table of contents] [next example]
/* Filename      : shore_e.c
 * Description   : the eastern shore - where the troll is
 *
 * written       : 23-12-1996 - Gunner
 * last modified : 28-05-1998 - Gunner
 * HTML-Version  : 06-02-2000 - Ghorwin
 */

#include <mudlib.h>
inherit I_ROOM;

#define FUNC "/doc/crashcourse/course11/shorefuncs"

create()
{
    ::create();
    set_light(1);
    set_short("By the lake");
    set_long("You are standing on the eastern shore of the lake. There's "
        "not much to see here, except the lake in front of you.\n");
    add_item(({"shore","eastern shore"}),"You're standing on it.\n");
    add_item(({"lake","cool lake","wet lake"}),"The lake is cool and wet.\n");
    add_item("sky","Give it a rest, will you? It's still up there.\n");
    add_item("ground","You still expecting for it to vanish beneath you?\n");
    add_trigger("swim",(:call_other,FUNC,"lake_swimback":));
    add_reset_object("troll","./troll",1);
    add_property("no_teleport");
    replace_program(I_ROOM);
}