State attack animation

After starting a new playthrough of my long winded game while I drum up inspiration for further story, something dawned on me.

It seems my game would really benefit from having a different animation for attacks when an actor is inflicted with a particular state.

This particularly goes with the "shrunken" status effect because you would otherwise cannot use a sword, a bowling ball, an ax, or whatever when you're tiny. However, I could have other uses too.

I was wondering if someone on here could kindly draw up a script that overrides the default weapon animation or otherwise attack animation for "Normal Attack" when an actor is inflicted with a certain state.

I would like something where I would put in the states note box <ANM: ID> where the ID is the animation ID that will replace the normal attack animation.

While technically not required, I highly prefer ANM to be what is used because it is a throwback to my college days where ANM was the class code for animation-based classes.

You've all been very helpful with scripts for my game—especially being that a lot are specific to my games and I appreciate all the hard work for these scripts that you've all made me.

Is this something that can be made? Please and thank you very much.
You can already do that with action sequencing tho.

Edit: Nvm this is ace. Oops.
Hime Dynamic weapon animation
That script seems to be difficult to understand. And Hime provided little information on how to use it.

Even if I knew how to use it, or the instructions were clear, I would have to manually input it for literally every weapon.

I want a few states to have a universal normal attack.

For these reasons, the Hime one will not work for me.

Original thread: https://forums.rpgmakerweb.com/threads/state-attack-animation.163763/