east_road3.c

nightmare3_fluffos_v2/lib/domains/Praxis/standardOld/east_road3.c · 1.6 KB

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <std.h>

inherit ROOM;

void create() {
  ::create();
    set_property("light", 2);
    set_property("no castle", 1);
    set_short( "the north end of East Road");
    set("long",
	"East Road comes to a sudden dead end as you find yourself "
	"at the foot of Praxis forest. These outskirts of Praxis aren't "
	"visited very often. The area is very quiet and lonely with "
	"so few people around.  Ahead, at the end of the road you "
	"can see a  discreet sign tacked to a tree. A  small footpath leads "
	"off the road in an eastern direction.");
   set_items(
      (["road" : "The road that travels the eastern end of Praxis.",
        "forest" : "The forest is dark and forebidding.",
        "intersection" : "There is a restaurant at one of its corners.",
        "alley" : "It is bright and wonderful.",
        "restaurant" : "The Last Dragon Restaurant.",
        "sign" : "A litte white sign, perhaps you could read it."]) );
    set_exits( 
	      (["east" : "/d/orlith/woodland",
		"north" : "/d/Praxis/1",
		"south" : "/d/Praxis/east_road2"]) );
}

go_north() {
  if(this_player()->query_level() > 5) {
    write("You try to continue on to the north, but the path "
"becomes too narrow to accomadate your size.");
    return 0;
  }
  return 1;
}
  
void init() {
  ::init();
    add_action("read","read");
  }
   
int read(string str) {
  if(str == "sign") {
    write("The sign reads: %^RED%^Welcome all new members to Nightmare! "
	  "Off to the north of here lies a special area for all "
"players new to the town of Praxis.%^RESET%^");
    return 1;
  }
  notify_fail("Read what?\n");
  return 0;
}


Site Stats

Snippets: 1791
Codebases: 571