Need damage system help.

So I'm creating my RPG game, but I want to manipulate a feature,
the damage system, specifically the "miss" system.

How can I make it so that when an attacker misses a hit
they recieve 20% damage of the initial attack they used?

Thanks in advance for any advice
🙂
You'll definitely need a script for that. I would recommend checking out Yanfly's site - there are some Tips & Tricks videos (sadly I can't name any offhand) that deal with using his plugins (such as Skill Core and Target Core) to change the target of an attack - because essentially what you are trying to do here is to change the target of the attack to the attacker and reduce the damage dealt by 80%. This is really hard and clumsy to do with plugins, so that would be your best bet unless you want to make a Plugin Request in the Plugin Requests section.
Would this only apply to misses with standard attacks or with anything that has a chance to miss?
See my below message please.
Would this only apply to misses with standard attacks or with anything that has a chance to miss?

Anything that has the chance to miss would have the user recieve 20% of the damage,
actors or enemies alike.

(Sorry for the repost) I didn't see the reply to a particular person button.
You could do this with Yanfly's Skill Core but it would require a pre-damage eval notetag for every ability that has a chance to miss.
You could do this with Yanfly's Skill Core but it would require a pre-damage eval notetag for every ability that has a chance to miss.

Skill core? I'll check it out, thank you.
What notetag would that be, do you know?
By that i mean what is the formula?
It'd be the <pre-damage eval></pre-damage eval> notetag. Basically you would check whether the target's result().missed was true, and if so make the attacker take 20% of value in damage as well.
It'd be the <pre-damage eval></pre-damage eval> notetag. Basically you would check whether the target's result().missed was true, and if so make the attacker take 20% of value in damage as well.
So if I make that a common event, I can add it to any "miss" type weapons and such?
Notetag in the notebox for a skill rather than a common event, but yes.
Notetag in the notebox for a skill rather than a common event, but yes.
What would be the exact notetag to type?
Ah, looks like in order to be able to check whether the skill missed or was evaded, you need to use Action Sequences. Skill Core can't do that because before eval happens before missing/evading is checked, and pre-damage eval only runs if the skill wasn't evaded and didn't miss.
Ah, looks like in order to be able to check whether the skill missed or was evaded, you need to use Action Sequences. Skill Core can't do that because before eval happens before missing/evading is checked, and pre-damage eval only runs if the skill wasn't evaded and didn't miss.
Ah, thanks for letting me know.

Original thread: https://forums.rpgmakerweb.com/threads/need-damage-system-help.76443/