interactive01.c

lima-1.0b5/lib/domains/std/school/R/interactive01.c · 669 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("Interactive npc");
    set_long(@MAY

Adapt from the example used in the basic or simple npc.

Start by adding periodic actions, in set_actions.
First argument - pause between actions (seconds)
Second argument - string for action, or string array for alternatives.

  set_actions( 10, ({
    "say What are you waiting for?",
	  "say Hello there!",
	  "say I don't like winter.",
	  "say I don't like snow.",
  }) );

MAY );

    set_area("wiz_area");

    set_exits( ([
	"backward" : R "zoo",
	"forward" : R "interactive02",
      ]) );

   set_objects( ([
     "/domains/std/harry" : 1,
     ]) );
}

Site Stats

Snippets: 1791
Codebases: 571