temp.c

nightmare3_fluffos_v2/lib/domains/Praxis/mountains/temp.c · 1.6 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", -1);
    set_property("indoors", 1);
    set_short( "Inside a dark chamber");
    set_long(
        "You are in a very dark chamber, illuminated only by your "
        "light source.  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( (["west" : "/domains/Praxis/mountains/tunnel1"]) );
}

void reset() {
    object arm, mon;

	::reset();
    if(!present("goblin")) {
        mon = new("std/monster");
        mon->set_name("goblin");
        mon->set_id( ({ "soldier", "goblin", "goblin soldier"}) );
        mon->set_level(3);
        mon->set_short( "Goblin soldier");
        mon->set_long( "An ugly monster who has likely never "
		 "seen the light of day.");
        mon->set_race( "goblin");
        mon->set_aggressive( 10);
        mon->set_alignment(-140);
        mon->set_hp(240);
        mon->set_gender("female");
        mon->set_body_type("human");
        mon->move(this_object());

        arm = new("std/armour");
        arm->set_name("boot");
        arm->set_id( ({ "boot", "boot", "goblin boot" }) );
        arm->set_short( "Right goblin boot");
        arm->set_long( "A boot for right foot made from the rotting "
		 "leather goblins can only find.");
        arm->set_type("boot");
        arm->set_limbs( ({ "right foot" }) );
        arm->set_ac(3);
        arm->set_mass(100);
        arm->set_value(100);
        arm->move(mon);
        mon->force_me("wear boot");
    }
}

Site Stats

Snippets: 1791
Codebases: 571