Choosing an item during a dialog to continue it

Hello, goodnight! I have a project in mind, but I honestly don't know how to execute this specific part. It is an investigation game, where later, the characters will discuss about the clues found.

I'd like to do the following: The characters are having a dialogue, until someone asks a question and I must answer with a clue I picked up earlier.

Then the item inventory opens and you must choose the right clue to continue. If you choose the wrong one, some character will say that it has nothing to do with it and you must give another clue, and this will happen until i give the right clue.

I would be very grateful if anyone could help me!
So if i get it right, you can do the follow.
Use the event command script call:
Code:
SceneManager.call(Scene_Item)
This will allow the player to choose from any item the party have, make an common event for when the player choose this item, to erase it after used and do whatever more you want, like turning on a switch.
After the script call, run a conditional check to see if the player still have the item or not, then turn a self switch for both cases.
In the next pages for this event, do whatever you want to do when it has or not this item, hope i get it clear enough, but any doubts, just ask.
Hello, thank you so much! Unfortunately, I'm having some problems...

First, I don't know if I'm doing something wrong, but as soon as I entered the script call, this happened:

1667743933983.png



I tested the same script call in VX Ace and it worked... I don't know what went wrong in the MV.


I'm confused about the common event part, I can even create it, but I don't know how to make it work together with the condicional branch. I also haven't figured out how to loop when I choose the wrong answer... Could you give me more detailed instructions?
So to clarify, what you're searching for is not an VXAce solution, but rather a MV's?
As you didn't provided the engine you are using and your profile says you primary uses VXAce, i just assumed it was an VXAce project, to do the same in MV you will need something different.
SceneManager.push(Scene_Item); is for the MV version.
but you can also use "keyitem" for select keyitem, than use variable
with the corresponding itemID as number.
So to clarify, what you're searching for is not an VXAce solution, but rather a MV's?
As you didn't provided the engine you are using and your profile says you primary uses VXAce, i just assumed it was an VXAce project, to do the same in MV you will need something different.

Oh I'am really sorry, I recently purchased the MV and couldn't change my profile to include it.

SceneManager.push(Scene_Item); is for the MV version.
but you can also use "keyitem" for select keyitem, than use variable
with the corresponding itemID as number.

Thank you! I will try in this way!

Original thread: https://forums.rpgmakerweb.com/threads/choosing-an-item-during-a-dialog-to-continue-it.152487/