Simple switch question.

In general I want to know if you can make a switch ON by default. Currently I have to trigger a pre-event that turns the switch ON then the main event can happend (because the switch is now on) However I want to have it ON by default, then at the end of the main event switch it off so the event doesn't happend every time I enter that room. 

For example, I want my character to trigger an event (just some dialog) the first time he walks into a room. Then at the end of the event the switch is flipped to OFF and that scene never plays again. I'm I maked this situation more compliated that it needs to be, whats the best way to go about this?
Easiest way to do it would be to create an event that autoruns on the map. Have it activate the switch then activate a self switch to a blank tab.

Edit: Wait, no, you don't need switches at all. Have the event you want to play run as you want, then turn on aself switch that leads to a blank tab. The event will play once then be set to a blank page, so it won't play again.
It worked like a charm, thanks so much!
Use a parallel process event instead of autorun, as parallel process events run BEFORE the map is visible, but autorun events run AFTER the map is visible.  If some of your switches control things on the map, the player will be able to see their initial state briefly before an autorun event changes the switch.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/simple-switch-question.21405/