Element resistances/ immunities not working as part of a state.

Okay, this issue is a bit specific. I have a few custom scripts installed, but I don't think any of them are the culprit.

I am attempting to make several states which temporarily replace your normal damage element types with a different one. This part is all fine and dandy, the spells and the states work in doing what they are supposed to. However, when your damage element is replaced, then used against a monster with a resistance or immunity to that element, the game does not register the resistance or immunity and deals damage as if the element rate was at 100%.

Things I've tested to troubleshoot:

  • It is not the same with weaknesses, all element weakness work through this method.
  • When I switch the element of Attack directly to the resistant/immune element the resistance/immunity is observed.
  • Using a weapon with the resistant/immune element invokes the resistance/immunity check as well.
  • It is not the element type I used, as I cycled through all of my elements to test.
Any help would be greatly appreciated, as these element-swaping spells are integral to my game.

Thanks in advance!
Show screenshots please - we need to see how these are set up.


Although you "don't THINK" any of your scripts are the culprit, you need to make sure of that. Start a new project and use only the default scripts. See if you can do it in that project, and if it works correctly, or at least differently to what you're seeing now. If there are any differences, your scripts ARE affecting it, and you will need to list them all and provide links to them.
Show screenshots please - we need to see how these are set up.

Although you "don't THINK" any of your scripts are the culprit, you need to make sure of that. Start a new project and use only the default scripts. See if you can do it in that project, and if it works correctly, or at least differently to what you're seeing now. If there are any differences, your scripts ARE affecting it, and you will need to list them all and provide links to them.
I have since checked a new project, and it is something with the core scripts, not the custom ones.

I'm not quite sure what you need to me show screenshots of.
The state(s), the skill(s), the enemy who has the resistance. Whatever you have set up to do the damage element type replacement.


Show us how your database is set up, so we can do the same thing in our own projects to do some testing for you.
Here are screenshots of the faulty skill/ state and the enemy I am testing on. I've tested on multiple enemies so I don't think that is what it is either. The Wave Strike skill and state are identical to the Flame Strike ones, except with inverse state addition and removal. The enemy is weak to that water damage, and the weakness is calculated.

Screenshot from 2015-03-11 01:17:55.png

Screenshot from 2015-03-11 01:18:13.png

Screenshot from 2015-03-11 01:17:41.png
I think I may know where the problem is.

The normal weapons you're using is most likely using a "physical" attack type, and the skill you're using there does not replace the inherent attack type of the weapon.

So attacking with the weapon using a normal standard attack, will do X damage + 100% normal attack state - which does not nullify the attack, but just ignore the damage bonus from the state.
I think I may know where the problem is.

The normal weapons you're using is most likely using a "physical" attack type, and the skill you're using there does not replace the inherent attack type of the weapon.

So attacking with the weapon using a normal standard attack, will do X damage + 100% normal attack state - which does not nullify the attack, but just ignore the damage bonus from the state.
Nope, I have been testing the entire thing without any equips.

But if I equip a weapon with the resistant/immune element it acts fine.

Original thread: https://forums.rpgmakerweb.com/threads/element-resistances-immunities-not-working-as-part-of-a-state.37650/