down.c

ds2.10/lib/domains/town/doors/down.c · 719 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DOOR;

static void create() {
    door::create();

    SetSide("DIR_X", ([ "id" : ({"door leading DIR_X", "door", "DIR_X door"}),
                "short" : "a door leading DIR_X",
                "long" : "This is the Y_SIDE side of a door leading DIR_X.",
                "lockable" : 1 ]) );

    SetSide("DIR_Y", ([ "id" : ({"door leading DIR_Y", "door", "DIR_Y door"}),
                "short" : "a door leading DIR_Y",
                "long" : "This is the X_SIDE side of a door leading DIR_Y.",
                "lockable" : 1 ]) );

    SetClosed(1);
    SetLocked(0);
    SetKeys("DIR_X", ({ "DIR_X key" }));
    SetKeys("DIR_Y", ({ "DIR_Y key" }));
}

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

Site Stats

Snippets: 1791
Codebases: 571