hill.c - example for course 11

[previous example] [course 11] [Table of contents] [next example]
/* Filename      : hill.c
 * Description   : the hill the girl is standing on
 *
 * written       : 23-12-1996 - Gunner
 * last modified : 23-12-1996 - Gunner
 * HTML-Version  : 06-02-2000 - Ghorwin
 */

#include <mudlib.h>
inherit I_ROOM;

create()
{
    ::create();
    set_light(1);
    set_short("On a hill");
    set_long("You are standing on top of a hill, admiring the scenery. "
        "Not that there's much to admire, since the only thing you "
        "can see is a lake to the east.\n");
    add_item("scenery","You don't see much, except that lake to the east.\n");
    add_item("lake","There seems to be a lake to the east of here.\n");
    add_item("sky","It's probably still up there, but what if it's not?\n");
    add_item("ground","The ground is probably below you, but what if you "
        "checks and it's gone?\n");
    add_item("hill","It sure looks like a hill.\n");
    add_reset_object("girl","./girl",1);
    add_exit("./shore_w","east");
    add_property("no_teleport");
    replace_program(I_ROOM);
}