npc02.c

lima-1.0b5/lib/domains/std/school/R/npc02.c · 518 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("More on the simple npc");
    set_long(@MAY

Continuing with the previous example, add name and proper_name.
Specify gender.

Name normally used
    set_name("Tiamat");

Formal name if needed
    set_proper_name("Tiamat");

Use 1 for male, 2 for female, 0 for neuter.
    set_gender(1);

Set the hit points
    set_max_health(300);

MAY );
    set_exits( ([
	"finish" : R "zoo",
	"backward" : R "npc01",
      ]) );
    set_objects( ([
      ]) );
}

Site Stats

Snippets: 1791
Codebases: 571