Random events.

I've diddled around with this software for years, mostly the map making side. I'm actually trying to make a game this time and am getting stuck.

I have a small game where the player is in an apartment. I want random NPCs to walk by outside, also at random times. I can't seem to figure out how to make this happen.

EDIT: Also, I have an event where a player sits in a chair. How do I make it so the player can't move until they press a button?
I've diddled around with this software for years, mostly the map making side. I'm actually trying to make a game this time and am getting stuck.

I have a small game where the player is in an apartment. I want random NPCs to walk by outside, also at random times. I can't seem to figure out how to make this happen.
Galv's move route plugin provides a command for a random wait. You can use that along with changing an event's graphic via a random variable value to have an event stand in for multiple possible NPCs and just have them move past after waiting a random number of frames in a specified range.
I could be wrong, but if you wanted to try it without a plugin, I think you could turn an event on and off with timers in a parallel Event and then do the random graphic for that event like Trihan mentioned. You can also move and swap events.

But I am an Eventing snob who will make everything more difficult to avoid using plugins so there is that.

Original thread: https://forums.rpgmakerweb.com/threads/random-events.163297/