Checking to see when armor is unequipped

I am using SumRndmDde's CCEX and DynamicActors plugins. My goal is to associate each clothing and accessory option with a specific armor in the data using the <Force Clothing Piece: Clothing (x)> notetag. Setting this up after opening the Character Creator is relatively simple with a conditional branch. Here's the script for reference:

If
$gameCharacterCreations.getInfo(ActorID).Clothing.file == 'Clothing (x)'
then
Change Armors: [[Armor type]] +1
Change Equipment: (ActorID), [[Armor type]]

However, I also want to implement an unequip feature. When a piece of clothing or accessory is removed, I want another event to occur. In this event, the default clothing (underwear) should be shown or the accessory should not be replaced with the appearance the player had chosen for their character. Now, I'm aware that there's a fix involving a plugin that prevents unequipping a slot, and I could have an Underwear key item for each game actor. I might have to stick with clothing options only during character creation, in that case, because the analogous fix would be to have an item called 'None' for accessories, which doesn't seem right.

With all that being said, is there a way to check to see if an item, such as armor, is being unequipped, and further, is there a way to change the Info(ActorID).Clothing.file or AccessoryA/B.file on the fly so that a more elegant solution can be scripted?
I don't have those plugins and I don't know anything about them. But what I do is use Galv's auto common events plugin (free), and on map load, which also is any time the menu is exited, the auto map load common event runs. This works for a need like changing equipment, as the way you change equipment is by going into the menu.

There, I have code for changing the actor sprite based on what the player has equipped or unequipped.

This might not be the solution you're looking for, but Galv's auto common events plugin may give you some options.
I decided to remove clothing and accessories from the OpenCharacterCreator plugin command, and I have a separate menu for clothing which appears after stat allocation, alongside equipment. It will take a bit of work to overlay the clothing sprites onto dummy bodies, and the player won't know what their character looks like all at once, but it will be less code running in the background of my game, which is a good thing in my estimation.

Original thread: https://forums.rpgmakerweb.com/threads/checking-to-see-when-armor-is-unequipped.158130/