wild2.c

nightmare3_fluffos_v2/lib/domains/Praxis/standardOld/wild2.c · 1.2 KB

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

inherit "std/room";

void init() {
    ::init();
    //add_action("enter_opening", "enter");
  }

void create() {
  ::create();
    set_property("light", 2);
    set_short( "The tropical wilderness");
    set_long(
	"You are inside a jungle that thickens along the path "
	"northeast.  The path widens west as it heads towards "
	"the adventuring village of Praxis.  You also notice "
	"a small opening in the thick jungle.");
    set_items(
	(["jungle" : "A wilderness area full of outlaws and "
	    "mysterious things.\n",
	  "village" : "The adventurer's town of Praxis.",
	  "vegetation" : "It gets thicker to the east.",
	  "path" : "You can see it opening up towards the village west.",
          "opening" : "On second glance, its too small to enter"]) );
    set_exits( 
	      (["northeast" : "/domains/Praxis/jungle",
		"west" : "/domains/Praxis/wild1"]) );
}

int enter_opening(string str) {
    if(!str) {
	notify_fail("Enter what?\n");
	return 0;
    }
    if(str != "opening" && str != "hole" && str != "jungle") {
	notify_fail("That is not here to be entered.\n");
	return 0;
    }
    this_player()->move_player("/domains/Praxis/outland1", "into the jungle");
    return 1;
}




Site Stats

Snippets: 1791
Codebases: 571