I need help with a mechanic

In my game I plan to have a system where you can burn items to gain over items at fires, similar to dark souls bonfires but I don't know how to do this AT ALL.
there are several ways, either with crafting (using crafting scripts) or with a select key item command in an event to select what to burn and give other items depending o that by conditional branches


If you're new and don't know how to use events, I suggest you follow the link to the starting point in my signature.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-a-mechanic.67587/