Question about making something resistant

I have a question about elements and making something resistant to them, ect.


I am wanting to make an enemy only take damage from a certain thing. IE: A werewolf only taking damage from a silver sword. I'm not exactly sure how to do this. After reading through things, I thought I was doing it right, but apparently I'm not because upon fighting the enemy they still take damage from other sources.


In my database I went to "types" and created a new element labelled as "Silver". I then created a sword and gave it my created element of silver. Specified its hit rate to be 95%. The weapon itself has 5 attack in the "Parameter Changes". I created the enemy, in this case a werewolf and gave him a 0% element rate on physical + all other damage types, and then gave him an element rate on silver for 100%.


I've tested it several times both in the editor itself and actually going in the game, just to make sure the editor wasn't registering it or something. He definitely takes damage when I use the silver sword as it basically one shots him every time as I intended, but randomly when attacking him with other characters that are using physical weapons he will take damage. It doesn't happen every time, but every 3-4 turns or so he takes damage from someone not using the specified silver weapon.


If anyone could tell me what I'm doing wrong, that'd be nice - Thanks!
We need more info to really help here - can you test until you find one of the skills that does damage without being supposed to do so, and place a screenshot of it as well as a screenshot of the enemy here?
I'm assuming I must have something backwards or that I'm reading something wrong. I've tried adding the element % to the weapons as well as doing it without. The weapon intended to do damage does damage, but the one not intended to do damage does as well, though as I mentioned it takes like 3-4 turns before it happens. I've made several different random test weapons too, and all of them will randomly end up damaging the enemy even though he has 0% on all element types except silver. I know whatever I'm doing wrong is really simple. I just have no clue what it is.

Spoiler
7d3c643060.png



7d3c7723ca.png



7d3c93bb8c.png
an element rate just makes the actor or enemy change the damage recevied - adding element rate to a weapon is the same as adding it to the actor but only is on the actor if the weapon is equipped. It's the attack element that counts for the weapons.


But again, we need to see the screenshot of the skill you're using when the enemy is damaged - that will override the element rates depending on what its settings are.


Without a screenshot of the skill we can't really solve this as the rest of your data is regular.
I've changed nothing on the "skill", it is just the basic attack. The random hits that occur with the weapon that isn't intended to do damage, does happen both as a non-crit and as a crit. I had checked that too just to make sure crits don't override specific data when occurring. The only other thing involved here would be the element type under "types" and the only thing you do there is simply create the name of the element itself, so I know there is no problem coming from there.


84e5af36d1.png
There is no random effect on the computer - if something happens, then it is caused by something in the project.


The only solution is to search until the cause is found.


You did change the attack skill (the success rate), but that should not have any effect here.


So the next possible steps are


1) checking plugins


2) trying to reproduce the same error in a new project that doesn not contain anything but those settings to replicate the case.


If 2 fails, then it is something else on the project that causes it, if you can reproduce the problem on the new project then you have a list of changes made that would help in locating the cause.
Make sure the others are not using a skill that is set to elemental = NONE, as that will override all your resistances as well. Otherwise, it will be a plug-in that is causing it, as some plug-ins change how elemental rates are calculated, which would make what you are doing not work as well as you hoped.
You are right - Sorry, I forgot I had changed the % of the attacks success rate to 95. Like you said though, that will have no effect in regards to what I'm speaking of. My actual question has already been answered though as I was just wanting to make sure I was making something resistant / susceptible to a damage type, so since it isn't working after knowing that I now know it is some random setting in a plugin that I've missed that altered something. I will go read over the few I have and see if any of them mention that. This can be closed / moved, or whatever.


- Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/question-about-making-something-resistant.63186/