Ok, then I'd do this.
These are your variables.
ARMOR - hit points on your armor
DAMAGE - raw damage of the enemy attack
ENEMY - enemy health
ATTACK - raw damage of player's attack
HEALTH - player health
This is your global script.
IF %ARMOR < 1 THEN %HEALTH := %HEALTH - %DAMAGE
IF %HEALTH < 1 THEN $DEST := @P(Insert the page number you want the dead people to go to, without the parenthesis)
Your individual link scripts are going to be something along the lines of...
%ENEMY := %ENEMY - %ATTACK
%ATTACK := 2D4
IF %ARMOR > 0 THEN %ARMOR := %ARMOR - %DAMAGE
%DAMAGE := 2D4
Obviously, you can change the %ATTACK and %DAMAGE formula to whatever you want each type of attack you do. Maybe an attack with a sword has a higher ceiling of attack but a lower floor compared to a spear. Or attacking with a sword deals more damage outright, but leaves you more vulnerable to receiving damage in turn. It's your game, play with it.
Just to be sure you understand, the 2D4 means 2 rolls of a 4 sided die, which means the amount could be anywhere from 2-8. In turn, 5D2 would mean 5 rolls of a two sided die, which means the amount could be anywhere from 5-10.
For each type of armor you'll want to add individual link scripts for however many points that type of armor is worth, such as, %ARMOR := 10 or however many points of damage you want the armor to absorb before it's broken.