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

26 lines
738 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->SetDoor(1);
car->CallMe(2);
}
static void create() {
dummy::create();
SetKeyName("button b");
SetId("b","button","two","B", "button B");
SetAdjectives("b", "elevator","button","basement","B");
SetShort("a button");
SetLong("It is a button that you could probably press. The letter \"B\" "
"is printed on it.");
SetPress((: openDoor :));
}