Key Items certain selecting

Okay! So I've got a little dilemma here. I've got a tiny little side-quest kind of thing going where the protagonist has to go find an item, and take it back to the npc. Hand it in and get the reward.


Now I have that part setup perfectly fine. I'm happy with it and it does really well, except for one thing. When it comes to choosing the Key Item which I have specified it too. It lists EVERY key item I have in the game. And I can choose any of the items in order to give to the npc, which results in the quest being completed regardless of the item I've given to the npc.


I'm sorry if I'm not being as descriptive of the issue as I could. If that is the case, here are a few screenshots. These include the event I have used to code it, the Key items, and the result regardless of which item I have given to the npc.

Events.jpg

Key Items.png

Result.png
you misunderstood what the command "select key item" does.


Selecting the key item places the ID of the selected item into the variable given. It does not remove the item from inventory.


But since the ID of the item is now stored in the variable, you can use a conditional branch to check if the correct item was selected and process it only in that case.
Thanks a huge bunch. After you told me to use the conditional branch. I did a little bit of research and implemented it, it works like an absolute charm! Thank you so much!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/key-items-certain-selecting.70291/