100% resistance rate against a specific element?

I have a certain boss fight set up to where the very first move the boss uses is a skill which is supposed to kill the entire party in a single hit unless they possess a certain weapon which gives them 100% resistance against the attack. After that point, the boss cannot use the skill again because its not in the boss' attack pattern.

The question is this:

 How do I set up the weapon so it gives the individual a resistance rate of 100% against the specified element?
Set element rate to 0 when they have that weapon. You can do this easily by giving the boss's attack an unique element (can call it whatever you want, as the player will never see it. Call it Foobar for all it matters), and that weapon gives you an element rate of 0% to that unique element. That way it doesn't block against other elements as well.

Original thread: https://forums.rpgmakerweb.com/threads/100-resistance-rate-against-a-specific-element.37908/