chamber2.c

nightmare3_fluffos_v2/lib/domains/Praxis/orc_valley/chamber2.c · 1.8 KB

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

inherit "std/room";

void create() {
  ::create();
    set_property("light", 0);
    set_property("indoors", 1);
    set_short( "An orc soldier's chamber");
    set_long(
        "You are in a dark living chamber inside the orc fortress. "
        "A passage east leads to the courtyard.");
    set_items(
        (["chamber" : "It is small with little in the way of furnishings.",
	  "furnishings" : "They are nothing of interest.",
	  "passage" : "It leads out to the courtyard."]) );
    set_exits( (["east" : "/domains/Praxis/orc_valley/passage2"]) );
}

void reset() {
    object ob, thing;

	::reset();
    if(!present("orc")) {
            ob = new("std/monster");
            ob->set_name("soldier");
            ob->set_id( ({ "orc", "orc soldier", "soldier" }) );
            ob->set_short( "Orc soldier");
            ob->set_long( "He is ugly and very unhappy about "
		    "your presence.");
            ob->set_class("fighter");
            ob->set_skill("two handed", 50);
            ob->set_race( "orc");
            ob->set_gender("male");
            ob->set_level(7);
            ob->set_hp(129);
            ob->set_alignment(-135);
            ob->set_aggressive( 18);
            ob->set_body_type("human");
            ob->set_wielding_limbs( ({ "right hand", "left hand" }) );
            ob->move(this_object());

            thing = new("std/weapon");
            thing->set_name("sword");
            thing->set_id( ({ "sword", "two-handed sword" }) );
            thing->set_short( "Two-handed sword");
            thing->set_long( "It was clearly made by orcs.");
            thing->set_type("two handed");
            thing->set_wc(15);
            thing->set_mass(450);
            thing->set_value(299);
            thing->move(ob);
            ob->force_me("wield sword in right hand and left hand");
    }
}

Site Stats

Snippets: 1791
Codebases: 571