test.c

ds2.10/lib/domains/town/doors/test.c · 717 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("south", ([ "id" : ({"door leading south", "door", "south door"}),
                "short" : "a door leading south",
                "long" : "This is the north side of a door leading south.",
                "lockable" : 1 ]) );

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

    SetClosed(1);
    SetLocked(0);
    SetKeys("south", ({ "south key" }));
    SetKeys("north", ({ "north key" }));
}

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

Site Stats

Snippets: 1791
Codebases: 571