Let's look at the shortest, simplest suit of armour possible:
simplearmour.c
inherit "/std/armour";
void create()
{
  ::create();
  set_type("body");
  set_ac(2);
  set_value(5);
  set_weight(15);
  set_size("light");
  set_id(({"leather","leather armour","armour"}));
  set_short("leather armour");
  set_long("A old suit of leather armour.");
}
Let's pick this apart!

set_type("body");
There are different types of armour. This doesn't imply anything about the material the armour is made of... it refers to whether this item is a suit of armour, a shield, a helmet, or so on. The allowed types are:

Please do not invent your own types. Please use only the types listed above.

set_ac(2);
This sets the Armour Class, the effectiveness rating for this piece of armour. The higher the number, the better the protection. The sample armour table in the Player's Handbook should be used as a guide in choosing this setting.

set_value, set_weight, set_short, set_long, and set_id
These work exactly like when making weapons.

set_size("light");
This indicates the proficiency Feat the MUD should check for. One of the following should be used:

Consult the example armour table in the Player's Handbook to determine which category this item falls into. This setting is required for the "body" type and optional for all other armour types.


This page may be viewed from any browser, not just one from Redmond.
Last Modified: Jan 1, 2001
Page written by Dave Shay (how to contact me).
Page content copyright ©2000-2001 by Dave Shay. Do not copy without express permission.
Dungeons & Dragons is a registered trademark of TSR, Inc., a subsidiary of Wizards of the Coast.
D&D rules, races, classes, features, etc. used in accordance with the TSR, Inc. Internet Policy.