Each armor has an unique identifier, called 'id'. This identifier is used in an Object's XML.
is referenced in the SovietAntiInfantryVehicle as
DamageFX=" VehicleDamageFX" />
(The tag DamageFX will be explained in another tutorial, and can be found in SageXML\GlobalData\DamageFX.xml )
In addition to the id, you can specify 3 other tags in the main ArmorTemplate body: Default, SideDamageScalar and RearDamageScalar.
Default details how much damage is taken by all types of warheads, unless otherwise specified. The default value for this is 100. If you want to make a unit invulnerable, you have to use the value 0.
The tags SideDamageScalar and RearDamageScalar redefine the damage from the side and rear, respectively. They are percentages, and are set at 100 by default, which means it does not matter from which side a unit is hit, it will take the same amount of damage.
If you want to increase the armor on the sides and rear, then you have to choose a higher number. If you want to decrease the armor on the sides and rear, you have to increase this number.
This example vehicle takes 105% damage from the sides, and 110% damage from the rear.
You can also define the amount of damage for several different types. You define a type, and a percentage of how much damage they take. As with the DamageScalars, a lower number means less damage, a higher number means more damage.
And an example of a complete armor:
(Please note that, whenever you use an extra Armor tag, you have to close the whole ArmorTemplate with </ArmorTemplate>. You also have to end the last tag of ArmorTemplate with >, not with /> )
You can choose the following Damage types: