How to make a skill deflecting enemies' bullets back to them in rpg maker mz?

How do you create a skill that deflects enemy projectiles back to them? I wanted to make a skill for my character, the skill would be that the damage that my character would inflict on my enemies would inflict damage to them and not to me, as if reflecting their attack back to them. My character wouldn't take damage, and the damage to the enemy would inflict his own damage. Please answer if this is at all possible, if so how to do it?
Thank you in advance
There is an sp-param [Edit: actually it's an ex-param] called Magic Reflection that does this. It applies to any skill of Magical Hit type, though, so that might not be suitable in your case, e.g. if you're already using Magical Hit for a different purpose.

Otherwise I think you'd need a plugin.
There is an sp-param called Magic Reflection that does this. It applies to any skill of Magical Hit type, though, so that might not be suitable in your case, e.g. if you're already using Magical Hit for a different purpose.

Otherwise I think you'd need a plugin.
Okay. Thanks for your help
There is an sp-param called Magic Reflection that does this. It applies to any skill of Magical Hit type, though, so that might not be suitable in your case, e.g. if you're already using Magical Hit for a different purpose.

Otherwise I think you'd need a plugin.
How do I add this sp parameter called Magic Reflection? You also mentioned that there are plugins that allow this, could you still give a link to one?
How do I add this sp parameter called Magic Reflection?
All modifiers to parameters, Ex-parameters and Sp-parameters are added via Traits.

You also mentioned that there are plugins that allow this, could you still give a link to one?

If the Magic Reflection can't work for you, and you're going the plugin route, that requires JavaScript knowledge so you'll need to ask for help constructing the notetags.
😅 Oops...Magic Reflection is actually an ex-param, not an sp-param. But yes, like Turan says, you'd add a state or something with the appropriate trait.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-deflecting-enemies-bullets-back-to-them-in-rpg-maker-mz.166544/