need to stop character

I need help on finding a way to stop the main character from exiting a room before monster is killed
Set the door event condition to a switch. After the monster is killed, turn that switch on.
That is basic eventing (using conditions and switches) - if you're that new, I suggest you follow the link to the "starting point" in my signature and work through the tutorials listed there.

Original thread: https://forums.rpgmakerweb.com/threads/need-to-stop-character.51511/