sea.scr

lima-1.0b5/lib/domains/std/2.4.5/sea.scr · 718 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

# Do not remove the headers from this file! see /USAGE for more info.

is=room

exits=
    west:jetty2.scr
    down:sea_bottom.scr
end
brief=All at sea
long=You are swimming out at the sea.

---
mixed can_go_down() {
    // rather, um, strange, but compat.
    foreach (object ob in all_inventory(this_body())) {
       if (ob->container())
           return 1;
    }
    return "You can't breathe under water !\nYou should try to get some portable air supply!\n";
}

mixed swim() {
    mixed t;

    if (stringp(t = can_go_down())) {
 	write(t);
    } else {
        this_body()->simple_action("$N $vdive down into the sea.");
	this_body()->move_to("/domains/std/2.4.5/sea_bottom.scr", "down");
    }
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571