tree1.c

./lib/room/city/garden/tree1.c · 841 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

#include <mudlib.h>
inherit ROOM;
void reset(status arg) {
  object obj;
  if(!present("koala")) {
    obj = clone_object("room/city/garden/monst/koala");
    move_object(obj,this_object());
  }
  if(arg) return;
  set_weather(1,3,0);
  set_short("a tree");
  set_long(
    "From the dizzy heights of the gum tree the ground below seems \n"+
    "a dangeous place, compared to the warmth and protection of the\n"+
    "leaves here. The tree trunk is a strange grey, almost white and\n"+
    "the leaves a strange sweet smell.\n");
  set_smell("The gum leaves smell of eucalyptuse.\n");
  set_exits(({
    "room/city/garden/tree2",   "up",
    "room/city/garden/garden7", "down",
  }));
}

void init() {
  ::init();
  add_action("down", "down");
}

status down() {
  if((string)this_player()->query_name() == "koala") return 1;
  return 0;
}

Site Stats

Snippets: 1791
Codebases: 571