Armor proficiency idea

I was thinking of making a game where wearing heavy armor give the character a debuff but there would be learnable skills to counteract it . Namely the armor inflicts a passive state on the wearing but the skill would make him immune to the state. I tried making the skill have a state resist effect but that doesn't work. How should I go about doing this?

Original thread: https://forums.rpgmakerweb.com/threads/armor-proficiency-idea.158954/