#include "defs.h" inherit ROOM_OBJ; object crowd; void setup() { /* The "commented functions" and "keywords" properties are specific for * rooms in the learning domain and is used to make it possible to search * for subjects. * See /d/learning/handlers/search.c for the way this is done. */ add_property( "commented functions", ({ }) ); add_property( "keywords", ({ "crowd" }) ); set_short("crowd demonstration room"); set_light(100); set_long("This is a room to contain a crowd of NPC's. " "It is intend to be a venue to test and try out " "the crowd NPC object and related files:\n" "%^YELLOW%^/d/am/learning/help_topics/crowd/crowd.c\n" "/d/am/learning/help_topics/crowd/crowd_merge_effect.c\n" "/d/am/learning/help_topics/crowd/crowd_merge_shadow.c" "%^RESET%^\n" "You can %^CYAN%^inv here%^RESET%^ to see objects present. " "You can also attack the beggars as NPCs may not use the exits.\n"); // add_exit( "next", SIT+"crowdroom2", "path" ); add_exit( "back", LEARNING +"search", "path" ); add_exit( "exit", ENTRANCE, "path" ); // modify_exit( "next", ({ "function", (: interactive($2) :) }) ); modify_exit( "back", ({ "function", (: interactive($2) :) }) ); modify_exit( "exit", ({ "function", (: interactive($2) :) }) ); } /* setup() */ void reset() { if (!crowd) { crowd=clone_object( CROWD+"crowd" ); crowd->move( this_object() ); // call_out( (: $1->move($2) :), 2, crowd, this_object() ); } }