Trying to figure out a Key use system.

Hey all, been trying to figure this out for an embarrassingly long time. I'm trying to create a pretty common system. Say there's a locked door, and you have a key to open. Rather than just going up the the door and having it sense you have a key, I want you to have to walk up to the door, open your menu, and select the key for the door to open. This can also be applied to many other things that would be a huge help in designing puzzles. Since just having the game check your inventory for an item that you have could make it way too easy.

Thanks in advanced!
You can do this with a Common Event effect on the item. This tutorial describes some options:
For location-specific things (like a key for a door), you can check:
  • Region ID (if the interactable object never moves):
    • Get Location Info -> Designation by a character.
  • Or X/Y/Map coordinates:
    • Control Variables -> Game Data -> Character -> Map X/Y;
    • Control Variables -> Other -> Map ID.
Then Conditional Branch commands can be used to check those variable values, and the player's facing direction if needed, to confirm whether the player is in the right place to use that item.
It has been a while, but I also made a tutorial or two about random key placement and using specific keys for specific doors. Those videos might be of some help.

You can find them on my YouTube page.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-figure-out-a-key-use-system.169022/