Help about event

want to make it so when you're in a room for a specific amount of time doing nothing, a dialogue box shows up with the character asking if you're there.

Moving during the timer wont reset it.
The only thing that will do that is leaving the room and coming back in

I want to know how to achieve this for my game, because i want it as an easter egg.
that's pretty easy, you just need to set up a parallel process event that counts up a variable. then set a conditional branch to check that variable, once it reaches the desired number. trigger message and turn on self switch A so it does not repeat.

you will have to mess with the variable count to figure out how long you want it to take.
You could also just try a parallel process event that has a Wait X frames (where X is the number of seconds x 60), then shows the message, then turns on a self switch that conditions the next page.
Parallel event. Use some Wait Commands. Do your Dialogue box. Make a switch that turns off when the character leaves the map and turns on when they enter it. Make sure the event triggers when the switch turns on.

Original thread: https://forums.rpgmakerweb.com/threads/help-about-event.104747/