Item Selection Help

I'm working on making a detective game in RPG Maker VX Ace. At some points in the game, you'll have to present certain pieces of evidence to someone else, but presenting the wrong one takes away 10 HP.

Is there a script in existence that allows it so the item menu is opened up and where only one item causes the correct result, and the others have the HP penalty? Or is there some way to do that in the basic script that doesn't involve making a bunch of conditional branches and choices?
You could do a Use Key Item command (or Select Key Item or something like that) that will open the menu, list all the "key" items (you set them up that way in the database) and put the id of the item into a variable chosen by you. In your event you can then check what the id of that item is - if it's the id of the correct item, you can execute the actions that apply to the correct result. If it's not the correct item, you can take away the HP.


Be aware when you talk about "basic script" that means SCRIPTS (hit F11), not events. What you are doing is eventing, not scripting, and you don't need to do scripting to achieve this.
You could do a Use Key Item command (or Select Key Item or something like that) that will open the menu, list all the "key" items (you set them up that way in the database) and put the id of the item into a variable chosen by you. In your event you can then check what the id of that item is - if it's the id of the correct item, you can execute the actions that apply to the correct result. If it's not the correct item, you can take away the HP.

Be aware when you talk about "basic script" that means SCRIPTS (hit F11), not events. What you are doing is eventing, not scripting, and you don't need to do scripting to achieve this.
Alright, thank you! Sorry, I'm still a bit new to all of this.

Original thread: https://forums.rpgmakerweb.com/threads/item-selection-help.43019/