[RMXP] Changing a battler's image depending on action?

I have been looking around but couldn't find exactly what I was looking for, at least not for XP, so thought I'd ask.

I want to change the png of the playable characters depending on what action they're taking. For example, they hold a shield if they're defending, fire comes out of their hands if they're using a fire skill, etc. After the action is done, they should return to how they were originally. I am wondering how to do this, though, because I cannot figure it out.

I tried making it so there's a dummy skill and a real skill, where the dummy skill calls a common event that changes the image and uses the actual skill for damage or whatever. But that presents its own problems, namely that the only target is random, it's overly complicated, and only works on skills and not on any other action.

So I'm wondering if there even is a way to do what I intend. Is there a script I can use to do this? Or a way to do this with events? Additionally, if there is a way to do this, is there a way to do the same with enemies, to change their pngs only when they're performing an action? (because I think you can't do it with regular events, correct me if I'm wrong)

I am using the default battle system, with Blizzard's Tons of Addons (namely centered battlers) and Diagostimo's Enemy HP and SP bars, if that makes any difference, though I don't think it should.
Well, with elemental skills you might be able to use states with 0 rating to display the effect on the battler for a single turn. The other options might need some scripting to make it possible, I think.
Thanks for the reply! I guess I'll go looking for a script then.

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-changing-a-battlers-image-depending-on-action.166499/