detecting if a player has a key item in there inventory

I some what new to rpg make i only used it for a week i was wondering how to make a event to where if the player have the item it lets them go but if they dont it stops them

can any one help me
3 Extremely Simple solutions:

-Trigger a Switch on before giving the player the item. Turn it off if they lose it.

-Conditional Branch has a tab that says item; anything you put on that branch will only happen if said item is in inventory.

-Same thing for events, they have a "item" condition where you can place a specific item as condition for a page, make the event let you through on a page with that item as condition would work.
oh here i thought it was complex i never used this thanks

3 Extremely Simple solutions:

-Trigger a Switch on before giving the player the item. Turn it off if they lose it.

-Conditional Branch has a tab that says item; anything you put on that branch will only happen if said item is in inventory.

-Same thing for events, they have a "item" condition where you can place a specific item as condition for a page, make the event let you through on a page with that item as condition would work.

Original thread: https://forums.rpgmakerweb.com/threads/detecting-if-a-player-has-a-key-item-in-there-inventory.146676/