swamp10.c

final_realms_fluffos_v1/lib/d/newbie/lizard/rooms/swamp10.c · 1009 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include "path.h"
inherit ROOM+"baseroom";

void setup()
{
    my_setup();
    set_short("Realm of the Lizard :  Swamp");

    set_long("Realm of the Lizard : Swamp.\n\n"
      "You are standing on the bank of a poisonous swamp. "
      "The water is dark and malevolent. "
      "A thin film lays on its surface and clings to the bank. "
      "The inhabitants of the swamp have long since perished, leaving only skeletons behind.\n\n");
    set_light(80);
    add_exit("west",ROOMS"swamp08.c","path");
    add_exit("southwest",ROOMS"swamp09.c","path");
    add_exit("south",ROOMS"swamp11.c","path");
}

void init()
{
    ::init();
    add_action("do_search","search");
}

int do_search(string str)
{
    if(str == "hedge")
    {
    write("You search the hedge, and discover an opening in the hedge.\n");
    say(this_player()->query_cap_name()+" searches the hedge.\n");
    add_exit("northeast",ROOMS"swamp12.c","door");
    renew_exits();
    return(1);
    }
    notify_fail("Huh?\n");
    return(0);
}

Site Stats

Snippets: 1791
Codebases: 571