kaliid3.c

nightmare4_fluffos_v1/lib/domains/Ylsrim/room/kaliid3.c · 1.2 KB

From the archive nightmare4_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*    /domains/Ylsrim/room/kaliid3.c
 *    From the Nightmare V Object Library
 *    An example of a room with a door and press event handler
 *    Created by Descartes of Borg 961222
 */

#include <lib.h>

inherit LIB_ROOM;

static void create() {
    room::create();
    SetTown("Ylsrim");
    SetClimate("arid");
    SetNightLight(18);
    SetShort("Kaliid Road by the Church");
    SetLong("Kaliid Road moves east and west through the desert town of "
	    "Ylsrim.  The road itself gets sandier as it gets swallowed by "
	    "the desert in the distance east.  On the northern end of the "
	    "road a door belonging to the local church.  Next to the door "
	    "sits a huge button.");
    AddItem("church", "It is a rather pathetic wooden building where the "
	    "local priests initiate people into their religion.");
    AddItem("desert", "The town does all it can to keep from being swallowed "
	    "by it.");
    AddItem(new("/domains/Ylsrim/etc/church_button"));
    SetObviousExits("e, w, enter church");
    SetExits( ([ /* "east" : __DIR__ "kaliid2", */
	       "west" : __DIR__ "kaliid4" ]));
    SetEnters( ([ "church" : __DIR__ "church" ]));
    SetDoor("church", "/domains/Ylsrim/etc/church_door");
}

void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571