mud/lib/domains/town/obj/basement_button.c
2020-09-06 05:43:07 -07:00

24 lines
643 B
C

#include <lib.h>
inherit LIB_DUMMY; // These do not show up in desc, but you can look at them
inherit LIB_PRESS; // Makes the item pressable
int openDoor(object who) {
object car;
send_messages("press", "$agent_name $agent_verb the button.",
who, 0, environment(who));
car=load_object("/domains/town/room/elevator");
car->CallMe(2);
}
static void create() {
dummy::create();
SetKeyName("button");
SetId(({"button","button on the wall" }));
SetAdjectives("call", "elevator");
SetShort("a button");
SetLong("It is a button that you could probably press.");
SetPress((: openDoor :));
}