The Combat Equation
Every unit and building has a certain amount of hit points. These hit points represent how much damage they can take before the unit is killed, or the building is destroyed. When a unit attacks another unit or building, there is a simple equation that is used to determine the amount of damage that is taken. Before we get to this equation, there are a few points you have to understand about Warcraft 2, and it's inner-workings.
Armor - Every unit and buiding in the game has an armor rating. This rating shows how much defense that particular unit has. Obviously, the higher this rating is, the better it is. All buildings (walls included) have a defense rating of 20.
Basic Damage - Basic damage is the type of damage units do, that IS affected by the targets Armor rating.
Piercing Damage - Piercing damage is the type of damage that IS NOT affected by the targets Armor rating.
((Basic Damage - Armor) + Piercing Damage) = Total Damage
Now, take the total you get here and divide it by 2. If the division leaves you with a .5 decimal, round it up to the nearest 1. That value you have now is the minimum amount of damage your unit will inflict per attack. Warcraft 2 takes this minimum value, and multiplies it by a random number from 1-2. As you can see, an attack will take off any value between the minimum value, and 2 times the minimum value. That is why the maximum amount is 2 times the minimum. Confused yet? Here are some examples.
Let's say a level 1 footman attacks a level 1 ogre. The footman has a basic damage of 6, a piercing damage of 3, and an armor rating of
2. An ogre has a basic damage of 8, a piercing damage of 4, and an armor rating of 4.
Now let's look at the ogre attacking the footman: ((8 - 2) + 4) = 10.
Level 5 Footman / Level 1 Ogre
Now I will use the same units, but this time I will use a level 5 footman, against a level 1 ogre to demonstrate the importance
of smith upgrades.
Ogre attacking the footman: (8 - 6) + 4 = 6
Remember that you can find all the unit and building statistics in the map editor.