예제 #1
0
파일: rat.c 프로젝트: shentino/simud
void create() {
   ::create();
   set_gender( random(2)+1 );
/* OBJEDIT { */
   set_spd( 11 );
   set_con( 4 );
   set_str( 4 );
   set_dex( 14 );
   set_wil( 9 );
   set_cha( 15 );
   set_int( 3 );
   set_emp( 5 );
   set_distant( "a rat" );
   set_specific( "the rat" );
   set_look( "It's a rat, a large, furry pest known for spreading disease and stealing grain. ~Pron is $(HP)." );
   set_plural( "rats" );
   set_name( "rat" );
   set_type( "rodent" );
   set_droppable( 1 );
   set_weight( 3000 );
/* } OBJEDIT */

   set_living_name( name );

   set_food(query_food_capacity());
   set_drink(query_drink_capacity());

   set_product_aspect( C_RAT );
   add_product( C_MEAT, 3, 10 );
   add_product( C_PELT, 2, 20 );
   //add_product( C_TAIL, 1, 10 );

   set_known_forms( (["animal": ({ "bite", "dodge"}) ]) );
예제 #2
0
void create() {
   object ob;

::create();

   if (!clonep(this_object())) {
     return; /* blueprints don't get stuff */
   }

   set_gender( random(2)+1 ); // both male and female guards
/* OBJEDIT { */
   set_distant( "a captain" );
   set_specific( "the ship captain" );
   set_look( "~Name ~verbis one of the captains of the 3 ships. ~Pron ~verbstand watch against rowdy passengers and stowaways. ~Pron ~verbis ?(ISCLOTHED:wearing $(WORN)):(unclothed), and ~verbis holding $(HELD). ~Pron ~verbis $(HP)." );
   set_alt_name( "ship captain" );
   set_alt_plural( "captain" );
   set_plural( "captains" );
   set_name( "captain" );
   set_type( "human" );
   set_droppable( 1 );
   set_weight( 60000 );
/* } OBJEDIT */

   set_living_name( name );

   set_known_forms( (["sword": ({"slash","stab","dodge","parry"}),
                      "brawl": ({"punch","dodge"}) ]) );
예제 #3
0
void create() {
   object ob;
   ::create();
   set_gender( random(2)+1 );
/* OBJEDIT { */
   set_str( 18 );
   set_dex( 10 );
   set_con( 24 );
   set_spd( 20 );
   set_wil( 4 );
   set_int( 4 );
   set_emp( 4 );
   set_cha( 4 );
   set_distant( "a fire lizard" );
   set_specific( "the fire lizard" );
   set_look( "~Name ~verbis small and red with a wingspan no greater than about a meter. ~Pron occasionally emits a small puff of smoke from ~poss nostrils. ~Pron is $(HP)." );
   set_alt_name( "fire lizard" );
   set_alt_plural( "fire lizards" );
   set_plural( "lizards" );
   set_name( "lizard" );
   set_type( "animal" );
   set_droppable( 1 );
   set_weight( 12000 );
/* } OBJEDIT */

   set_living_name( name );

   set_food(query_food_capacity()/2);
   set_drink(query_drink_capacity()/2);

   set_known_forms( (["dragon": ({"dragon_bite","dragon_hide"}) ]) );
예제 #4
0
파일: store.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_distant( "a store" );
   set_specific( "the store" );
   set_plural( "stores" );
   set_name( "store" );
   set_alt_name( ({ "store", "store", "store" }) );
예제 #5
0
파일: shop.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_distant( "a shop" );
   set_specific( "the shop" );
   set_look( "A small shop." );
   set_plural( "shops" );
   set_name( "shop" );
   set_alt_name( ({ "store" }) );
예제 #6
0
파일: oven.c 프로젝트: shentino/simud
void create() {
   ::create();
/* OBJEDIT { */
   set_distant( "a stone oven" );
   set_specific( "the stone oven" );
   set_look( "This is an oven made from stones stacked into a funnel shape. It is enchanted, so it burns continually, even though there is no fuel in the firebox below. There is a large opening in the face of it, about chest height, into which things may be placed. The top of the oven peaks into a funnel, above which the heat distorts the air.?(HASINV: Cooking inside the oven $(ISINV) $(INV))" );
   set_plural( "ovens" );
   set_name( "oven" );
   set_alt_name( ({ /* Converted Array, Length = 1 */
  "stone oven"
}) );
예제 #7
0
파일: library.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_distant( "a library" );
   set_specific( "the library" );
   set_look( "It's a small library. The image of a scroll engraved over the doorpost." );
   set_plural( "libraries" );
   set_name( "library" );
   set_phrase( "A small library has been built ~plac." );
   set_position( "here" );
   set_preposition( "in" );
/* } OBJEDIT */
}
예제 #8
0
파일: cottage.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_distant( "a cottage" );
   set_specific( "the cottage" );
   set_look( "This is a quaint cottage with a red terracotta roof." );
   set_plural( "cottages" );
   set_name( "cottage" );
   set_type( "home" );
   set_phrase( "A small cottage with a red roof has been built ~plac." );
   set_position( "here" );
   set_preposition( "in" );
/* } OBJEDIT */
}
예제 #9
0
파일: door.c 프로젝트: shentino/simud
/// Constructor for the door object.
create() {
/* OBJEDIT { */
   set_distant( "a door" );
   set_specific( "the door" );
   set_look( "You a see a door to your ~dirc." );
   set_plural( "doors" );
   set_name( "door" );
   set_phrase( "There is a door ~plac." );
   set_position( "to the ~dirc" );
   set_block_message( "You can't go that way!" );
   set_block_visible( 1 );
   set_pass_message( "You go through the door to the ~dirc." );
/* } OBJEDIT */
}
예제 #10
0
파일: wolf.c 프로젝트: shentino/simud
void create() {
   object ob;
   ::create();
   set_gender( random(2)+1 );
/* OBJEDIT { */
   set_spd( 12 );
   set_con( 13 );
   set_str( 14 );
   set_dex( 15 );
   set_wil( 10 );
   set_cha( 3 );
   set_int( 4 );
   set_emp( 3 );
   set_distant( "a wolf" );
   set_specific( "the wolf" );
   set_look( "~Name ~verbhas gray fur, penetrating yellow eyes, and a generally surly disposition. ~Pron is $(HP)." );
   set_plural( "wolves" );
   set_name( "wolf" );
   set_type( "wolf" );
   set_droppable( 1 );
   set_weight( 45000 );
/* } OBJEDIT */

   set_living_name( name );

   set_food(query_food_capacity()/2);
   set_drink(query_drink_capacity()/2);

   add_form("animal");
   set_form("animal", 1);
   remove_form("brawl");

   set_race("canine");
   set_wc((["piercing":6]));
   set_wimpy(30);

   /*
   set_env_var( "skin_type", "/monsters/skin/wolf_pelt" );
   set_env_var( "meat_type", "/monsters/meat/wolf" );
   */
   set_product_aspect( C_WOLF );
   add_product( C_MEAT, 3, 40 );
   add_product( C_PELT, 7, 20 );
   // add_product( C_TOOTH, 4, 40 );

   clone_object("/ai/carnivore")->move(this_object());
   ob = clone_object("/ai/aggro");
   ob->set_aggro_level(10);
   ob->move(this_object());
}
예제 #11
0
파일: milk.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_drinkable( 1 );
   set_weight( 1000 );
   set_bulk( 1000 );
   set_value( 5 );
   set_distant( "milk" );
   set_specific( "the milk" );
   set_look( "Cool and creamy, white and frothy milk." );
   set_plural( "milk" );
   set_name( "milk" );
   set_use_msg( "~Name ~verbchug the cool, frothy milk leaving a nice white mustache." );
/* } OBJEDIT */
}
예제 #12
0
파일: cake.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_edible( 1 );
   set_gettable( 1 );
   set_droppable( 1 );
   set_weight( 1000 );
   set_value( 50 );
   set_distant( "a cake" );
   set_specific( "the cake" );
   set_look( "A freshly baked cake with deluxe chocolate frosting." );
   set_plural( "cakes" );
   set_name( "cake" );
   set_alt_name( "chocolate cake" );
/* } OBJEDIT */
}
예제 #13
0
파일: centipede.c 프로젝트: shentino/simud
void create() {
   object ob;
   ::create();
   set_gender( 0 );
/* OBJEDIT { */
   set_distant( "a giant centipede" );
   set_specific( "the giant centipede" );
   set_look( "~Name ~verbis over one meter long and has more legs than any decent critter should own. While definately not a full hundred, it's close enough to warrant the name. ~Pron is $(HP)." );
   set_alt_name( "giant centipede" );
   set_alt_plural( "giant centipedes" );
   set_plural( "centipedes" );
   set_name( "centipede" );
   set_type( "animal" );
   set_droppable( 1 );
   set_weight( 45000 );
/* } OBJEDIT */

   set_living_name( name );

   set_known_forms( (["animal": ({"bite","poisonbite","dodge"}) ]) );
예제 #14
0
파일: wasp.c 프로젝트: shentino/simud
void create() {
   object ob;
   ::create();
   set_gender( 0 );
/* OBJEDIT { */
   set_distant( "a giant wasp" );
   set_specific( "the giant wasp" );
   set_look( "~Name ~verbis a great black flying menace. Its wings emit an incessant buzz as it hovers a meter or two off of the ground, searching for prey. ~Pron is $(HP)." );
   set_alt_name( "giant wasp" );
   set_alt_plural( "giant wasps" );
   set_plural( "wasps" );
   set_name( "wasp" );
   set_type( "animal" );
   set_droppable( 1 );
   set_weight( 45000 );
/* } OBJEDIT */

   set_living_name( name );

   set_known_forms( (["animal": ({"sting","dodge"}) ]) );
예제 #15
0
파일: scorpion.c 프로젝트: shentino/simud
void create() {
   object ob;
   ::create();
   set_gender( 0 );
/* OBJEDIT { */
   set_distant( "a giant scorpion" );
   set_specific( "the giant scorpion" );
   set_look( "~Name is a nasty big crawly thing of the sort that give people nightmares. It has some eight legs, two claws, and a great tail with a nasty barbed stinger on the tip. This is definitely one monster that not even a mother could love. Oh, and the claws could probably cut you in half too. ~Pron is $(HP)." );
   set_alt_name( "giant scorpion" );
   set_alt_plural( "giant scorpions" );
   set_plural( "scorpions" );
   set_name( "scorpion" );
   set_type( "animal" );
   set_droppable( 1 );
   set_weight( 45000 );
/* } OBJEDIT */

   set_living_name( name );

   set_known_forms( (["animal": ({"grab","sting","dodge"}) ]) );
예제 #16
0
파일: dough.c 프로젝트: shentino/simud
create() {
   ::create();
/* OBJEDIT { */
   set_edible( 1 );
   set_food_value( 10 );
   set_drink_value( 2 ); // Per 1000 units
   set_weight( 1500 );
   set_bulk( 1000 );
   set_value( 0 );
   set_distant( "dough" );
   set_specific( "the dough" );
   set_look( "A pale brown glob of raw dough." );
   set_plural( "dough" );
   set_name( "dough" );
   set_use_msg( "~Name ~verbgulp down some raw dough." );
   set_quantity( 250 );
   set_solid( 1 );
   set_gettable( 1 );
   set_droppable( 1 );
/* } OBJEDIT */
   call_out( "rise", 60 );
   state = 0; // Unraised
   cooked = 0;
}
예제 #17
0
파일: stairs.c 프로젝트: Lundex/lima
// Separated from create() so that objects can overload this separately
void more_create(mixed up_dest, mixed down_dest) {
    set_plural(1);
    setup_messages("stairs", up_dest, down_dest);
}