Automatically equip a weapon when an accessory is equipped

So I'm trying to make a "minitank" accessory that when equipped:

1. Automatically unequips all other equipment.

2. Replaces it with a "minitank gun" weapon, "minitank armor" armor, etc.

3. Is automatically unequipped and removed from your inventory (along with the other minitank equipment ofc) once the character "wearing" it receives either 3000 total HP damage or 30 hits over multiple battles.

I found this http://forums.rpgmakerweb.com/index.php?/topic/22011-equipment-durability/, but even that doesn't auto-unequip and delete from inventory.

If there's not already something I can use to make this, what would be more complicated/time-consuming: a script or a crapload of common events? Any other suggestions?
Answered my own question this time! This seems to work so far: http://himeworks.com/2013/06/common-equip-events/

Let me just complete a fully functioning prototype to make sure I don't have any other questions before marking this as solved.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-equip-a-weapon-when-an-accessory-is-equipped.45150/