Different outcome for different selected item?

Hello, in my game I have a puzzle where the player has to place the right item (a flower) into a bowl to unlock a door. Earlier in the game the player can pick up 3 different flowers, where only one of them will unlock the door while the other two will only change the event image. The issue is that nothing happens when I select the incorrect item, but correct choice works as intended. Basically, how can I make the program check which item was selected and make it give a different outcome for each item?
Any help/advice would be greatly appreciated.

screenshot.png
screenshot 2.png

The other two pages are the same as this, but with a different event image and self switch corresponding to the one for each flower colour
If you're using the Select Item command you're already telling it to store the item id in the variable that you told it to. You would would just check the value of that variable and have different conditionals based on what it is.
If you're using the Select Item command you're already telling it to store the item id in the variable that you told it to. You would would just check the value of that variable and have different conditionals based on what it is.
Right, but when there's 3 items how would I do that? Do all three items have to be under the same variable?
The variable is storing the database item id of whatever you selected. That's what Select Item does.

Press F9 and see what value your "Blue Flower" variable is holding
I changed the all the checks to "blue flower" with the other flowers' corresponding variable and it worked. thank you for explaining

Original thread: https://forums.rpgmakerweb.com/threads/different-outcome-for-different-selected-item.175099/