npc01.c

lima-1.0b5/lib/domains/std/school/R/npc01.c · 583 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("How to make a simple npc");
    set_long(@MAY
Start with a file similar to simple object - but inheriting ADVERSARY.
Add various names and descriptions - id, in_room_desc and long.

inherit ADVERSARY;
void setup() {
    set_id("dragon", "tiamat");
    set_in_room_desc("Tiamat the Dragon");
    set_long(@LIMA
Getting close enough to see what a dragon looks like
is not a good idea.
LIMA);

}
MAY
    );
    set_exits( ([
	"monsters" : R "zoo",
	"forward" : R "npc02",
      ]) );
    set_objects( ([
      ]) );
}

Site Stats

Snippets: 1791
Codebases: 571