Elemental Resistance State

Is there a way to create a state of partial resistance to a particular element?


For example, I would like to create a "Resistfire" type spell that does "M.Defense + 5%"  BUT ONLY defends the +5% against Fire Based Spells and Attacks.


I see a Element Rate option I can choose Fire and then set a % but I am not entirely certain this will do what I want.


I also see a State Resit area but it doesn't let me resist "fire spells" per se.


Can anyone point me to maybe a tutorial or some other resource that explains in an easy to understand way, how I might create spells that can be cast during battle to raise magic defense against spells of a particular element?


Screen Shot 2016-07-09 at 8.26.13 PM.png
To do this, create a state that changes the element rate of the element you want to protect against.  For instance, if you want fire resistance, the state should contain a trait that changes the fire element rate to, say, 50% (default is 100%).  Then in the skill, all you need to do is apply the state to the target.
So, something like what I show below would cut the damage taken by fire spells or elemental attacks by 1/2?


Screen Shot 2016-07-09 at 8.54.43 PM.png
Yes, that should reduce fire damage by half, but as the state currently stands, it won't disappear.  Change the auto-remove timing and set it to be removed at battle end, or else the state will effectively be permanent.
Thanks for your help. Your info got me to where I needed to be.

Original thread: https://forums.rpgmakerweb.com/threads/elemental-resistance-state.65092/