if youre going to make armor then all you simply have to do is check to see if the player got hurt . then you of course need to know his hearts before he got hurt and you would need to compare like if hes got armor it doesnt hurt
here i didnt test this but im just like giving a base
NPC Code:
if (!isweapon&&playerenters&&!hasweapon(-armor)) { toweapons -armor; setstring armor,100;}
if (playerhurt) {
this.armorcheck=strtofloat(#s(armor));
if (this.armorcheck>0) {
playerhearts+=.5;
this.armorcheck=abs(this.armorcheck-5);
setstring armor,#s(this.armorcheck);
}
}
considering that baddies do .5 dmg else u have to set string of the current ammount of the player health then check it over or whatever..
okay bye