Event based item combination

I thought a lot about this but what I came up with looks too complicated and I'm hoping for an easier way. I want it to be like this- the player gains many items traveling around an area, and he needs to combine them, to form a new item. How can this be done? I know there are many item synthesis plugins around but those actually tell the player what the final item will be. It's like, 'combine n number of this and this and you get this'. But, I want the player of my game to use his brain to figure it out. But there are no plugins that would help to implement this, so I guess I have to use events. In my mind, this is how I imagine it to be- the player selects an item, from a list of items (I guess I will use choices) and this triggers a switch. Next, the player is asked to choose between other items; those items will also trigger a switch. In the end I can just check with conditional branches whether he chose those items by the switches, right?
Another thing! I want the player to choose the items serially. I'd like to display a message like "that won't work" or something, if he chooses two items consecutively breaking the serial.
*Sigh* Anyways, I just said what I think will be the way to do this. If anyone has thought of an easier way to do this, or has a suggestion or advice please tell me!
Thanks for reading.
Use several select key item to have the player select the items, each of these commands storing the item ID into a different variable.
Then check if the combination oft numbers in those variables is valid or not.

You should not use a single switch this way, only a long list of conditional branches checking the numbers in the variables and react to then. And you'll only need a few variables, for the maximum number of parts for the maximum receipe - probably three or four unless that is a vital part of your game mechanics
@Andar Thanks for the reply! I didn't even think of using the item IDs. Proves how stupid I am, thinking so complicatedly when it can be done so easily. I'll try that now.

*edit* Well, this was solved pretty easily. I have no idea why I was thinking so much over something so simple. This thread can be closed now!

Original thread: https://forums.rpgmakerweb.com/threads/event-based-item-combination.86094/