DESOLATION

Help manual · Example Code

Example Armor

inherit ARMOR;

void setup() {
   set_adj("pair of old %^GREEN%^algae%^RESET%^ covered", "algae", "old", "pair of","combat");
   set_id("%^BOLD%^%^BLACK%^combat boots%^RESET%^", "boots");

   set_wearmsg("$N $vstrap on $p $o.");
   set_in_room_desc("A pair of ugly combat-boots rest here.");
   set_long("A pair of combat boots, which, judging by their appearance - and smell -, "
            "have spent a great deal of time at the bottom of the ocean. The leather and"
            " sole are mostly covered in dark green algae, and small barnacles. At some "
            "parts the steel toes are visible where the leather has rotted "
            "away, but they're heavily rusted and corroded by the water. Wear these "
            "boots with style!");
            
   set_covers(SHOES);
   set_armor_skill(LIGHT_ARMOR);
   set_size(SMALL);
   set_rarity(1);
   set_level(1);
   set_max_level(10);
}

Category:Example Code