chamber4.c

nightmare3_fluffos_v2/lib/domains/Praxis/mountains/chamber4.c · 1.7 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", -1);
    set_property("indoors", 1);
    set_property("no teleport", 1);
    set_property("no castle", 1);
    set_short( "A dark underground chamber");
    set_long(
        "You are in a very dark chamber, illuminated only by your "
        "light source.");
    set_smell_string("default", "The stench in here is foul and trapped.");
    set_items(
        (["light" : "What light?",
	  "tunnel" : "It is very dark.",
	  "chamber" : "You cannot see it very well."]) );
    set_exits( (["east" : "/domains/Praxis/mountains/tunnel2"]) );
}

void reset() {
    object arm, mon;

    ::reset();
    if(!present("goblin")) {
    mon = new(MONSTER);
        mon->set_name("goblin");
        mon->set_id( ({ "general", "goblin", "goblin general" }) );
        mon->set_short( "Goblin general");
        mon->set_long( "An ugly monster who has likely never "
		 "seen the light of day.");
        mon->set_level(5);
        mon->set_race( "goblin");
        mon->set_aggressive( 10);
        mon->set_alignment(-200);
        mon->set_hp(300);
        mon->set_gender("male");
        mon->set_body_type("human");
        mon->move(this_object());
    arm = new(ARMOUR);
        arm->set_name("shield");
        arm->set_id( ({ "shield", "goblin shield" }) );
        arm->set_short( "Goblin shield");
        arm->set_long( "A huge, heavy shield whose metal was mined "
		 "from the Darow Mountains.");
        arm->set_type("shield");
        arm->set_limbs( ({ "left hand", "left arm", "torso" }) );
        arm->set_ac(3);
        arm->set_mass(500);
        arm->set_value(150);
        arm->move(mon);
        mon->force_me("wear shield");
    }
}

Site Stats

Snippets: 1791
Codebases: 571