Weapons and Elements

I'm currently attempting to create an enemy that is immune to all damage except from a certain element.
In the enemy traits I have listed 0% as Element Rates for all elements including Physical. All elements except for that single weakness which I have set to 200%

I have a skill that changes the attack element to that weakness.
But it seems to have no effect on this foe.

My only conclusion is the fact that I added the immunity to Physical Damage.
All my weapons have Physical as their basic element.

I need a way to have this enemy be immune to a standard attack with a weapon unless I have used the skill to change it to the proper element.

Normally if my warrior smacks this thing with a sword it will have no effect.
But if my mage uses "Blessing of Fire" on the party and my warrior strikes again then the enemy takes a lot of damage.

Any ideas on how to accomplish this would be most appreciated. Thanks.
When you say "immunity to Physical Damage", do you mean the Sp-Parameter Physical Damage (PDR)? If so: the PDR/MDR parameters don't actually relate to elements. A skill/item is considered "physical damage" (and reduced by PDR) if its Hit Type is set to "Physical"; similarly for MDR, magical hit. 😅

It should be sufficient to set all but one of the element rates to 0%. A skill with "Normal Attack" element should default to element 1 if the battler has no Attack Element traits active. 😤
When you say "immunity to Physical Damage", do you mean the Sp-Parameter Physical Damage (PDR)? If so: the PDR/MDR parameters don't actually relate to elements. A skill/item is considered "physical damage" (and reduced by PDR) if its Hit Type is set to "Physical"; similarly for MDR, magical hit. 😅

It should be sufficient to set all but one of the element rates to 0%. A skill with "Normal Attack" element should default to element 1 if the battler has no Attack Element traits active. 😤

One of those Element rates is called "Physical" It is element 1. It's along with Fire and Ice etc...
All my weapons have that element .
In battle it isn't simply showing "0HP" as the damage done to the enemy as when you edit Sp-Parameters. It's showing "Immune."
Setting all but one element to 0% including the physical one is exactly what I did.
Even when I use "Blessing of Fire" I still get "Immune" . If I use a magic attack of the enemy's weakness it takes damage appropriately but other than that it's invincible.
If I take away the Physical damage immunity then I am able to damage the enemy. Both before and after using the Elemental Blessing skill.
I need a way for it to just be after using the skill.
I'm not sure what's going wrong for you, since that setup works OK for me (no plugins). Here's some ideas, though~
  1. Does the skill you're using (e.g. skill 1, Attack) have its Element set to Normal Attack? If not, it won't inherit the Attack Element. 😴

  2. Just to be super-sure: the Blessing of Fire skill adds a state to the target(s) with an "Attack Element: Fire" trait, right? And it's not wearing off early or anything? 😅

  3. "Immune" is not a default popup, maybe this is a plugin [configuration] issue. Could you list/screenshot all the plugins you're using? 🙂
The "Immune" thing is due to a plugin. It's a Damage Popup Customization.

As for the other 2 suggestions.
The basic attack skill is set to Normal Attack and "Blessing of Fire" does work correctly. If I take away the immunity to Physical Attacks, my warrior can damage the foe. Once I use Blessing of Fire the same warrior can do twice as much damage and inflict a burn on the enemy. I have an icon associated with the state that the skill provides so I know that it isn't wearing off.

EDIT: I disabled all plugins and it still doesn't work.
However if I create a new project and run everything again It works properly. So it seems to be something that I created somewhere causing the issue. A switch or common event or something interfering with this.
I'll start looking...
EDIT: I disabled all plugins and it still doesn't work.
However if I create a new project and run everything again It works properly. So it seems to be something that I created somewhere causing the issue. A switch or common event or something interfering with this.
I'll start looking...
Again, just to be super-sure: did you remember to save your project after turning off your plugins, and before testing? If not, the plugins will all have still been active during the test.

Otherwise, assuming you haven't found a solution already, I wonder if you started your project in an older version of RPG Maker? Perhaps something relevant has changed in the base project code since then, or you edited the base code at some point? You can check which version of the code your project is currently running on:
  • Go to your project's js folder
  • Open rpg_core.js (e.g. in Notepad or something)
  • The version should be right at the top, e.g. for me it reads:
    Code:
    //=============================================================================
    // rpg_core.js v1.6.2
    //=============================================================================
To check your editor version, you can simply go to Help > About in the editor. 🙂

If your project and editor are at different versions, that may cause unexpected behaviour during play. However, some plugins you're using might not be compatible with the current version of your project's code, so be sure to have a backup if you want to try updating your project's code version! Update announcements/instructions can be found here in case you're interested: RMW | Steam.
Again, just to be super-sure: did you remember to save your project after turning off your plugins, and before testing? If not, the plugins will all have still been active during the test.

No. No I apparently did not! It was a plugin. Yanfly's Element Core. Instead of replacing the Physical attack element it was adding to it.
I tried it again with that disabled and it works!

This is the second time you helped me out of a jam.
I can't thank you enough. I'm officially crediting you in my project under "Special Thanks".🙏

My entire final boss battle revolved around this gimmick it was very important to me that I figure out why it wasn't working the way I wanted.
Thanks again!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/weapons-and-elements.114811/