object03.c

lima-1.0b5/lib/domains/std/school/R/object03.c · 470 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

#include "../school.h";
inherit ROOM;

void setup(){
    set_brief("Optional extras for a simple object");
    set_long(@LORIEL
Adding some weight:
within the setup function, set its size:

    set_size(1);

Adding a value:
first inherit the module M_VALUABLE
then (within setup) set the value

inherit M_VALUABLE;

    set_value(1);
LORIEL
    );
    set_exits( ([
	"west" : R + "object02",
	"corridor" : R + "corridor05",
      ]) );
    set_objects( ([
      ]) );
}

Site Stats

Snippets: 1791
Codebases: 571