ITEM WEAPON

From AddictHelp
Jump to navigation Jump to search

Weapons are used to inflict greater than bare handed damage in combat.

v0 = element (see below)
v1 = number of damage dice
v2 = size of damage dice
v3 = attack type
v4 = weapon type (unused)
<element> is the type of elemental damage the weapon can do.  Imagine a 
              Fire Sword that inflicts FIRE damage to the victim.  If the
              victim is weak against fire, the damage would be increased.
    
              Valid values are:
                  NONE     0
                  FIRE     1
                  WATER    2
                  EARTH    3
                  WIND     4
                  POISON   5
                  ENERGY   6
                  SUN      7
                  PSYCHIC  8


<attack type> is a number which defines the attack message that the
              weapon produces. 
 
        NUMBER   ATTACK MESSAGE
           0     "hit"      "hits"
           1     "sting"    "stings"
           2     "whip"     "whips"
           3     "slash"    "slashs"
           4     "bite"     "bites"
           5     "bludegon" "bludegon"
           6     "crush"    "crushs"
           7     "pound"    "pounds"
           8     "claw"     "claws"
           9     "maul"     "mauls"
           10    "thrash"   "thrashs"
           11    "pierce"   "pierces"
           12    "blast"    "blasts"
           13    "punch"    "punchs"

         New types can be added as needed.

Piercing weapons can be used to backstab. Make SURE slashing weapons are not usable by clerics.

Calculating damage: A weapon's basic average damage is calculated by the formula:

average damage = number of dice * (dice size+1)/2 
Thus, a 1d8 weapon's average damage = 1 * (8+1)/2 = 4.5
and a 4d6 weapon's average damage = 4 * (6+1)/2 = 14

See also: OEDIT, OSET, ITEM_TYPES, RESISTANCES