Character is randomly immune to Thunder Element.

Hello,

I have an Actor who is inexplicably immune to the Thunder Element.

I haven't the slightest idea why. It has nothing to do with the class, as I put the class on another actor, tested it with the same spell, and they took damage.

It just has to do with the actor. The actor has no traits listed, and I've tested removing all note tags.

I'm using a decent number of plugins (all Yanfly, all properly ordered), but nothing that is active on the Actor, Spell, or Enemy at the time of testing. I have no idea what can be causing this, but it's a pretty constant headache.

If you would like to see any screenshots of the database please let me know.
There is no randomness in a computer, everything has an exact cause.
And we can't help with that without getting more detailed infos about what is happening, like a screenshot of the skill that he doesn't take damage from, screenshots of the enemy using that skill and the actor data and so on.

You might want to follow the link "bughunting" in my signature to learn a bit more about how to identify a cause for this problem as well
@Andar Yes, obviously it is not truly random. I more so meant "unintentionally in a way that I cannot explain."

Regardless, I've used several different skills. I even made a sample skill that does a flat 500 damage, but on this actor, it did 0. I changed the actor's class, it did 0. I made a new enemy, still did 0. Nothing is pointing to it being the Enemy, Spell, or Class. I even made a new actor with the same class and notetags, and they took damage. It's also not the armor or weapon displayed below.

Everything is pointing to it being the Actor:

11bb4d1a9c14428ab8da3d4ed7c6dc84.png


BUT: If I copy and paste the actor to a different ID, he takes damage again. I'm not sure if something can be checking if actor id = 2 and then negating the damage, but, that's all I've got.
please show all screenshots I requested - using a single demo skill as an example instead of every skill
We can't help you without more info

And also add a screenshot of your plugin manager so that we can see if you have a plugin that might affect this.
@Andar

Spoiler
e50df114359a4fb6b4008e871674841c.png


68b67e96008b4035a2662a571bb59388.png


cce83fc3f9ad4133b2ab5e45b1532d83.png

882f867b74b34843b7c2f24d3bd9a547.png

0754118fe3d9433c99e2d1955efb071a.png

Not sure if it's helpful, or possibly related, but I noticed that when recruiting a certain party member, they were equipped with an accessory
that prevents ice damage, despite their starting class having nothing equipped. It's possible that something similar is going on here.
If you make the damage type something other than thunder does he take damage from it?
If you make the damage type something other than thunder does he take damage from it?

Do you mean change the name of the ID from something other than thunder? Or actually change the ID from Thunder to something preexisting, like Fire?

He is specifically immune to Element ID 4. In game status even shows him taking 0% from whatever ID 4 is named.
Okay, so it is specifically that character, taking 0% from specifically element ID 4?
Okay, so it is specifically that character, taking 0% from specifically element ID 4?

Correct.
Make a backup of plugins.js from your js folder and replace it with one from a new project and see if it still does it. That'll tell you whether it's the settings themselves or one of your plugins that's causing the issue.
one other question, I don't see it asked or mentioned so far:
are you using a saved gamefile or are you starting a new game on the tests? Because if you're loading a saved file, it will also load old settings that might have been changed in the database but not in the savefile.
Make a backup of plugins.js from your js folder and replace it with one from a new project and see if it still does it. That'll tell you whether it's the settings themselves or one of your plugins that's causing the issue.

So, I did this, and there was no error, put my plugins back, and now the error is gone. I have no idea what changed.

one other question, I don't see it asked or mentioned so far:
are you using a saved gamefile or are you starting a new game on the tests? Because if you're loading a saved file, it will also load old settings that might have been changed in the database but not in the savefile.

I always checked with a fresh, new game file.
Sounds like it may have been a residual thing from an old plugin and redoing them removed it.

Original thread: https://forums.rpgmakerweb.com/threads/character-is-randomly-immune-to-thunder-element.75799/