MV Actor Portrait Change when attacking/How to apply a state at the beginning of an attack?

So I'm using Yanfly's battle status window and way's custom face image eval.

Right now, I have it set to where when the actor takes damage (aka, when the Hit state is applied), their portrait will briefly change to a different image, before timing out and returning to the original portrait. So it looks like the actor is flinching when they are being attacked.

What I want is for the actor's portrait to change when they choose to use an attack or skill, like in Omori or In Stars In Time. Right now, my logic is to find a way to somehow apply a state to myself at the beginning of the attack. Is there a script call that can do that?

If not, is there an RPG MV plugin out there that can perform a similar function?
at the beginning of the attack
you'd probably be looking in the direction of the skill core's <custom execution> notetag, or action sequences then.
if *all* skills should give this state, then its probably better off overwriting the default action sequence in yanfly's battle engine if youre using it to include a call to add the state to the current battler
Just to mention it, there have been a good number of threads about this. It might be worth it to Google them, try things they've suggested, then let us know if you're still stuck and which things you tried.

Original thread: https://forums.rpgmakerweb.com/threads/actor-portrait-change-when-attacking-how-to-apply-a-state-at-the-beginning-of-an-attack.172969/