I want my NPC to react to items in inventory without using an exorbitant amount of variables

CONTEXT
In my Game, there's one armour type, called Medals (similar to the Badges in hollow knight.)
Each one has a good stat bonus, but a negative trait that isn't shown to the player.
There is an NPC who, if functional, will allow you to pay some of your gold coins to reveal the negative debuff for a specific Medal. It would go something like this:
[Player interacts]>[Player chooses to pay gold]>[Player can choose any of the Medals that they have acquired]>[NPC tells them the debuff]
 PROBLEM
I do not know how to make the NPC aware of which Medals the character has acquired. Nor how to make the choice menu change to accommodate new Medals earned later in the game, without having to resort to hundreds of variables and switches if possible.

Additional Context:
In the database, Medals are armour, not Items.
Hi there sweetie! 😍 Sooo, I wud simply use Hidden Item A or B for this! Erry time yo player gets a Medal, have them also acquire a corresponding Hidden Item. Then select those Hidden Items in the NPC interaction!
I don't understand where hundreds of variables would come into play.

You're going to need some combination of plugins to do this.

- a plugin to show the traits on the items (perhaps Yanfly's Equip Core or one of the related plugins does this?), and possibly an extension for that plugin to be able to turn that on and off for medals you haven't identified yet (if there's nothing like that built in)

- a plugin that either lets you use the Select Item event command on armor, or provides conditional choices so you can populate a Show Choices list with unidentified medals. (or what @alice_gristle said!)
maybe try this plugin for it if you dont want to use key items.
quite easy to set up and really powerful as well, can do what you want.
CONTEXT
In my Game, there's one armour type, called Medals (similar to the Badges in hollow knight.)
Each one has a good stat bonus, but a negative trait that isn't shown to the player.
There is an NPC who, if functional, will allow you to pay some of your gold coins to reveal the negative debuff for a specific Medal. It would go something like this:
[Player interacts]>[Player chooses to pay gold]>[Player can choose any of the Medals that they have acquired]>[NPC tells them the debuff]
 PROBLEM
I do not know how to make the NPC aware of which Medals the character has acquired. Nor how to make the choice menu change to accommodate new Medals earned later in the game, without having to resort to hundreds of variables and switches if possible.
You'd need to select an item and have it's ID be transferred to a variable, which will then be used in a conditional branch to determine what text is displayed by the NPC.
An example being that if armor ID 102 was a medal, you'd need to select armor 102, then have that ID be transferred into a variable, running a common event afterwards to display the appropiate text.
Sorry, I misread your little flowchart in the original post.

@Infern0pxy clued me in to my mistake, but it can be done a bit easier than that with a little scripting, rather than having potentially hundreds of conditional branches.

At the beginning of your game, place an Autorun event on the first map that has the following:
Script:
Code:
$gameVariables.setValue(42, []);
$dataArmors.forEach(armor => {if (armor.meta.badstuff) $gameVariables.value(42)[armor.id] = armor.meta.badstuff;});
Control Self Switches -> Self Switch A on

and it has a second page, blank, with the condition of Self Switch A.

That will turn game variable 42 into an array that's storing, by the armor ID, anything you type into the armor with the notetag
<badstuff: Put the description of your bad stuff here>

Change the instances of the number 42 to be whichever variable you want to use.

Then, in your NPC event, once you select an item you need its ID in a variable - let's say you got that into variable 16. Then you'd do:
Control Variables -> 16 -> Script: $gameVariables.value(42)[$gameVariables.value(16)]

Then variable 16 has whatever you typed for the badstuff tag in that armor ID. And you can make your NPC event show it with Show Text and \V[16]

Original thread: https://forums.rpgmakerweb.com/threads/i-want-my-npc-to-react-to-items-in-inventory-without-using-an-exorbitant-amount-of-variables.169437/