MV Change Actor Image dynamically

Can I make it so that when a character has a certain equipment, their actor image changes, and when they remove it from their equipment, it changes back?

I have a common event ready in the structure:
Code:
if : Character has equipped Glasses
    Change Actor Images : Character, [...]
: End

However, Trigger: Autorun on common events requires a switch, so I'm kind of stuck on how I would achieve such behavior. Hopefully this isn't too hard of a thing to make. I just don't know how such a switch would be turned on at all, or if it's even necessary.
You can turn the switch on whenever you want. (At the start of the game for example) The common event would run and repeat for as long as it's on. Basically checking the equipped actors every couple of frames and change their images accordingly. In my first game I handled sprite changed that way. Had it run on parallel with a couple wait frames at the end to not lag the game, but it's obviously not ideal.
Could use WAY_CustomOnEquipEval to change the actor image whenever that equipment is equipped or unequipped? So something like:

JavaScript:
<Custom On Equip Eval>
if(a.actorId() == 1)
{
  a.setCharacterImage(name, index);
  a.setFaceImage(name, index);
  a.setBattlerImage(name);
  a.refresh();
}
</Custom On Equip Eval>

Create as many if branches as you have characters that need to have their image changed, and replace "name" and "index" with the appropriate filenames/index, then do the same for <Custom On Remove Equip Eval> to change it back when the equipment is removed.

if you want it really advanced (seperate images), you can try AnimaX.
free is limited to 2 layers I believe, pro has unlimited, so its also more
dynamic if you want per piece change.

there where a few others too, older plugins that may work.
but I don't see many visual equipment for MV though.

evented can be full sprites, that may work, or more useful
when they have a completed set.

Original thread: https://forums.rpgmakerweb.com/threads/change-actor-image-dynamically.183922/