Super Simple Equipment Leveling

Hi, I've been looking for a script that allows equipment to level up, but I couldn't find any that were quite right. The kind of levelling I was thinking of is more like combining an item with a piece of equipment, and then the equipment is replaced with another one in the database (which I've set up to be the equipment's next level). 

I basically want a script that allows the player to select equipment from the menu and, if the player has the correct item in their inventory, the piece of equipment will level up.

It would go something like:

(edit: If possible, I'd also like the upgrades to cost money)

 - Player selects a piece of equipment

 - Prompt appears "Level Up? (-1 item x)" and choices appear "Yes / No"

Spoiler
MgITZy0.png
when no: cancels selection.

when yes: checks if item x is in inventory

  if there is an item x: removes 1 item x from inventory, replaces equipment with next one in database.

                                 Plays sound effect (equip3) and a message appears "equipment y levelled up!"

Spoiler
gv7zsAH.png
  if there isn't an item x: message appears "This equipment requires item x to level up."

If a piece of equipment can't level up, it's name would be greyed out and pressing spacebar (or enter, Z, whatever) on it won't do anything.

I was thinking this would be done through adding notetags to the equipment in the database

 e.g. "level up requires: x" would mean the equipment can level up but item x needs to be in the inventory.

Scripts I'm using:

Yanfly's Item menu: https://github.com/Archeia/YEARepo/tree/master/Menu

Yanfly's Equip Engine: https://github.com/Archeia/YEARepo/tree/master/Gameplay

Note that Yanfly's site is experiencing problems so the above was set up. The scripts I'm using should be the first ones on the page.

 

Thank you for any help 🙂
Bump c:
What if you need multiple items to level up.
I'm never going to use more than one item to level up, but I guess the notetag would be: "level up requires: x, y, z..."

Or even "level up requires: x, n" where "n" is the amount of item x required and the notetag would be added more times if more items are required. (But I'm not sure how to script so I guess 'use your best judgement' might be a better answer)

Again, I'm only ever going to be using one item for each equipment (e.g. all of the equipment in the "slime" series (e.g. the slime cloak, as shown in the pic) would require one Slime Jewel to ascend to the next level).

However, I guess if multiple people wanted to use this script then it might suit more people to have the option of setting multiple required items.
bump
Can't you just use a typical item combination script for this? There's definitely one somewhere. I tested it myself. I'll see if I can find it again.
Yeah, that's what my first thought was, but I could only find ones that operated in a separate menu. 

Plus, it would look it a bit odd to show multiple recipes for levelling up a single piece of equipment.

But a pre-existing item combination script will be my backup in case this doesn't get much attention.
bump c:
bump
Bump + If possible, I'd also like upgrades to cost money.
this script might help you out

http://forums.rpgmakerweb.com/index.php?/topic/1383-dark-cloud-2-weapons-ace/
this script might help you out
Thank you, Venka 😀 . That script will do just fine.

Edit: Nevermind, it doesn't seem to be compatible with Yanfly's Equip Engine...

Original thread: https://forums.rpgmakerweb.com/threads/super-simple-equipment-leveling.26309/