Script call when equipping / unequipping specific armors

Hello, I've been searching the world wide web for a plugin I'll need to get a new mechanic into my game, but I haven't found anything.

What I'm looking for is a plugin thanks to which you can specify that adding or removing certain pieces of equipment immediately calls a script specified in the notes.

Full disclosure, I got @Tsukihime's Equip Slots Core, and I want some armors to add new equipment slots (script call: user.addEquipSlot(x)) that actors don't have if they're not wearing these special armors. Equipping one of them would result in these slots being added, and unequipping would result in these same slots being removed. The reason why I can't just add equipment slot tags to the armor itself is that the Equip Slots Core plugin doesn't have that option.

Thank you for your time!
Give this a try, it seems to be working for me with no other plugins active: view/download equipEval.js (Google Drive).
Spoiler: Full plugin code
JavaScript:
/*:
 * @plugindesc Provides hooks for equip/unequip code via notetags.
 * @author Caethyril
 * @help Weapon/Armor notetags:
 *     <onEquip:eval>
 *     <onUnequip:eval>
 *   Replace "eval" with some JS. Don't use the ">" character in your evals!
 *   Immediately after equipping/unequipping an item, the plugin will check
 *     for these notetags and evaluate any relevant code.
 *   Examples:
 *     <onEquip:$gameSwitches.setValue(1, true)>
 *     <onEquip:$gameVariables.setValue(4, $gameVariables.value(4) + 5)>
 *     <onUnequip:$gameSwitches.setValue(1, false)>
 *     <onUnequip:alert("Are you sure that's a good idea?")>
 *   Evals can also span multiple lines, e.g.
 *     <onEquip:
 *     for (var n = 1; n < 5; n++) {
 *       $gameSwitches.setValue(n, true);
 *     }>
 * 
 * Terms of use:
 *   Free to use and modify.
 */

(function(alias) {

    Game_Actor.prototype.changeEquip = function(slotId, item) {
        var prev = this._equips[slotId].object();
        alias.apply(this, arguments);
        var curr = this._equips[slotId].object();
        if (prev && curr !== prev) {   // prev exists and was successfully unequipped
            eval(prev.meta.onUnequip || '');
        }
        if (item && curr === item) {   // item exists and was successfully equipped
            eval(item.meta.onEquip || '');
        }
    };

})(Game_Actor.prototype.changeEquip);
That seems to be working, at least the commands are interpreted, however I can't seem to find something the plugin will relay as the wearer being targeted by the script command. The tags I entered are <onEquip:user.addEquipSlot(4)> and <onUnequip:user.removeEquipSlot(4)>, but user isn't recognized. I also tried Game_Actor instead, but having no JS knowledge that's everything I know that could point at the wearer. Another tag in the piece of armor refers to the wearer as user, and it works as intended.

Can you tell me what I should write instead of user to make the plugin know I'm targeting the wearer with my command?
Try this.
It took me a few takes to realize your message wasn't incomplete, and it turns out putting this. instead of user. resulted in the new equipment type being added to the equipment list immediately upon equipping the armor, and removing the armor immediately removed the equipment type. Everything works, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-when-equipping-unequipping-specific-armors.122945/