Skill damage based on correct timing

Hi guys,

I'm looking to configure some skills (bow skills) like this:

Upon selecting such type of skill triggers, two circles appear on the screen, one smaller circle fixed at the center of the screen and a larger circle surrounding the smaller one. The outer circle quickly shrinks toward the inner one. To have maximum damage, the player must press ENTER precisely when the shrinking outer circle matches the size of the inner circle. Hitting this perfectly results in 100% damage. Pressing ENTER too early or too late leads to reduced damage (for example 50%). Being way too early or way too late (or even not pressing ENTER at all) leads to a complete MISS.

Is there any script out there that could help me achieve this mechanic?

Example pic:

Unbenannt.PNG

Original thread: https://forums.rpgmakerweb.com/threads/skill-damage-based-on-correct-timing.177559/