mbase.c - example for course 04

[previous example] [course04] [Table of contents] [next example]
/* Filename      : mbase.c
 * Description   : the mountainbase
 *
 * written       : 01-10-1996 - Gunner
 * last modified : 01-10-1996 - Gunner
 * HTML-Version  : 01-02-2000 - Ghorwin
 */

#include <mudlib.h>
inherit I_ROOM;                     // inherit "/std/room.c"

create()
{
    ::create();
    set_light(1);                   // Let there be light...
    set_short("Mountainbase");
    set_long("You are standing at the base of a mountain. High up above "
        "you, the mountainpeaks pierce the gray clouds on their way "
        "to heaven. Down here beside you, a cave has been cut into the "
        "mountainwall. The cave seems to be very dark from out here, "
        "and you can see nothing inside it.\n");

    add_item(({"mountain","base","mountainbase","base of mountain"}),
        "You are standing at the base of the mountain, looking at what "
        "appears to be a cave just in front of you.\n");

    add_item(({"peak","peaks","mountainpeak","mountainpeaks"}),
        "The peaks seem to pierce the gray clouds high up above you.\n");

    add_item(({"sky","cloud","gray cloud","clouds","gray clouds"}),
        "The sky is filled with gray clouds.\n");

    add_item("heaven","Is it up there? Who knows...\n");

    add_item(({"wall","mountainwall"}),
        "A cave has been cut into the mountainwall just in front of you.\n");

    add_item(({"ground","hard ground","unforgiving ground"}),
        "The ground is hard and unforgiving.\n");

    add_item("sun",
        "You can't see the sun since the clouds are blocking your view.\n");

    add_item(({"cave","dark cave","mountaincave"}),
        "The cave is dark and you can't see much inside it.\n");

    add_exit("./mbase_w","west");
    add_exit("./mbase_e","east");   // Three exits out of this room
    add_exit("./cave","cave");

    replace_program(I_ROOM);
}