I have a game where I want a character to give you something if you have something else.
Example: You have a cookie. Other character wants it for ball. You give them cookie, you get ball.
Try variables or since you can't VISUALLY see your inventory make the door give you an item but don't show dialog that you did or use a variable to change where an exit goes. I'm not saying it will work but it mght.