MV Changing Damage Type of Skill

As title says.

Not sure if this is possible, but I was wondering if there's an option to change the damage type of a skill (physical, magical, certain hit). I couldn't find anything on YEP, and there are mechanical reasons on why changing the element type instead would not suffice.
changing damage type will change the entire way the skill is handled, see

because of this you will need a plugin to get that ability, and I don't know if such a plugin already exists or not
It's not terribly difficult to do, but the catch will likely be WHEN the change is recognized. So to better understand, could you tell us how the skill change would happen? Would a state do it? An equip? Story progression? Would it apply to only one skill? How long? All that yummy stuff!

Thx for letting us help you!
Hey Maliki! Thanks for your interest in this.

I don't want anything complicated. I just want a state that changes the damage type of a skill to a certain type if it isn't that type already (i.e. Convert damage to physical if battler would be inflicting magical/certain hit).

If you know Spellcraft: Hammer from Bravely Second, that's exactly what I'm aiming for.
Thanks for waiting.

All done!

Please find the plugin HERE

If you encounter any issues, please let me know.
Thanks for waiting.

All done!

Please find the plugin HERE

If you encounter any issues, please let me know.
First up, thanks for making this. I feel like I won the lottery for having my request made.

Now, the plugin works, but for some reason it still uses the targeted defense value when considering damage formulas (i.e. if the attack is originally magical and I'm converting it to physical, it will take the target's MDF, then apply the damage as physical).

I have YEP's Armor Scaling, so I assumed the right defense would automatically be targeted, but it doesn't seem to be the case. I probably need to change how my damage formulas would work, but otherwise this gives me options.
This is exactly why I asked how you needed this to effect your game...
When you make a skill, you determine what params are used (ex, a.atk*4 - b.def*2).
Now, what you actually wanted (I'm guessing) is a plugin that allows you to alter a damage formula mid game.
If that is what you wanted, you can actually do that with the damage formula itself.
So, for a magical skill you could try this damage formula:

var defs = a.isStateAffected(x) ? (b.mdf*2) : (b.def*2); a.mat*4 - defs

with x being the state that changes magical type to physical.

Hope that makes sense.
var defs = a.isStateAffected(x) ? (b.mdf*2) : (b.def*2); a.mat*4 - defs

with x being the state that changes magical type to physical.
So I CnP'd this formula in my damage box and everything works now, except for when Armor Scaling is on and the actor is affected by the changer state; it causes the test skill to do 0 damage. This is probably a conflict of how both plugins work, so I may or may not have to give up something. Still, I thank you for everything. I'll move forward with this blessing.

Original thread: https://forums.rpgmakerweb.com/threads/changing-damage-type-of-skill.139820/