Possible to equip a weapon based on a state?

Before I begin, yes. I know this is the wrong thread to post in. Problem is that I can't quite find a "help me, I'm trying to do really complex stuff and need complex help" thread. Please move it where it should go so that I know where to go next time. Thank you!

Anyway, I'm trying to do some Maker Magic. When you use a skill (say for instance, "Metal Make: Sword") I want it to add a state, which equips a weapon for a bit. After the state ends, I want it to unequip. Tried a parallel common event, but it didn't do anything. Ypu can set the ability to equip a weapon TYPE, but not a specific weapon. I was able to accomplish this with a common event that equipped it after the spell was used, but it didn't make it to where the weapon would unequip. Any help welcome. Thanks!

I've moved this thread to MV Support. Thank you.

Yanfly's Buffs & States Core lets you add effects to states that trigger when they expire. Then something like this would probably work:

Code:
<Custom Remove Effect>
user.changeEquipById(1, null);
</Custom Remove Effect>

Or if you want the weapon completely vaporized instead of dropped to the inventory:

Code:
user.forceChangeEquip(0, null);

Note: Both of these assume the weapon is in the first slot. if it's different, you'll need numbers that correspond with the appropriate slot id. (changeEquipById is +1 higher than forceChangEquip for the same slot)
@Aesica Thanks! I might give it a try, though an idea was growing on me for being able to sell these items for a little extra Gold if needed by the player. Thanks once more!

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-equip-a-weapon-based-on-a-state.121720/