Change Class On Equip

As the title suggests I'm looking for a way to change the actors class when they equip a weapon or item. As in: equip a sword to an actor: Class = Swordsman.

It sounded really simple in theory, but I can't see any way to do it without eventing each actor + each class 30x.
You can use my CustomOnEquipEval plugin, which you can get here https://forums.rpgmakerweb.com/inde...-collection-newest-way_menubackgrounds.78979/

<Custom On Equip Eval>
user.changeClass(2, true);
</Custom On Equip Eval>

<Custom On Remove Equip Eval>
user.changeClass(1, true);
</Custom On Remove Equip Eval>

Put these notetags in the weapon.
On equip it will change to 2 and on remove it will change to 1. You can change the class ids to your liking.

EDIT: Updated link
Not possible without scripts/plugins that trigger on equip.
There is an eventing approach, but that would cause a lot of lag.

Original thread: https://forums.rpgmakerweb.com/threads/change-class-on-equip.98642/