MZ Parry/Timed Guard Plugin?

Hello all!

I want to add a system like this to my game.

Basically, when an enemy attacks, a prompt pops up to hit a button. It can be the same button every time.

If the player hits the button right as the attacks lands, it plays a sound effect and reduces their MP by a set amount. What would be really nice is if you could link it to Akea's Shockwave effect, but it's not necessary. Quick Edit: Just calling a common event here would be great.

If the player misses the attack, they lose a little bit of HP and MP.

If the player does nothing, then they only lose HP.

I googled and searched but couldn't even find a good timed guard plugin.

Any suggestions? I'm using MZ.

Thank you, and if it's too hard/not possible, I understand! I'll take the closed thing there is.
I'd be interested to know if a plugin exists.

Thinking about this from a development standpoint, I'm thinking that "right as the attacks lands" would be primarily determined by the attack animation/effect. Which means you'd need a way to specify the frames of the animation that would be considered the correct time for the player to press the button.

Maybe you'd also want a HUD option to display "press X now" during the frame window as a training option, since the "impact" portion of animations varies a lot from animation to animation.

Unless your timing window would be more generic, and along the lines of a short window of time after the animation completes but before the result is displayed.

Anyway, I don't have an answer to your request, but thought it was interesting.
There's this guide for MZ
Ooh, this might work. Thanks @AquaEcho!
I'll share how I did it, if I can get it to work, @Kenen.
I'm thinking you can probably do it with this plugin too that allows parallel common events in battle. It's just a matter of using conditional statements to turn the switch for it on and off at the right times so you only check for button inputs during enemy attacks.

The plugin file has English instructions

I showed how to use it for a "hold button in battle to escape" sequence here:
Post in thread 'Hold a button to escape from battle.' https://forums.rpgmakerweb.com/inde...ton-to-escape-from-battle.160345/post-1373845
Ooh, this might work. Thanks @AquaEcho!
I'll share how I did it, if I can get it to work, @Kenen.
Did you ever get it to work?
I don't believe so. I switched battle systems before I figured it out.
Sorry, I forgot to provide an update.

The information on this thread should help though.

Original thread: https://forums.rpgmakerweb.com/threads/parry-timed-guard-plugin.162253/