Creating actor from an item?

Similar to how in Pokemon you can 'revive' fossils and they become Pokemon, so how do I go about exchanging an item with say an NPC and in return X actor joins your party?
you create the actor in the database, you create the items in the database, and then have the event pretending to be that NPC check if you have the item. If yes, remove it and add the actor.
@Andar Couldn't a consumable item that calls up a common event that has a "Change Actor: Add *insert name here*" as a command do the same/similar thing?

EDIT: Just saw he was looking for an exchange-based way. Ignore what I said.

Original thread: https://forums.rpgmakerweb.com/threads/creating-actor-from-an-item.90713/