HELP. Run Autorun event content once, then stop, until map is loaded again

Hello, I'm trying to make a secret door on my map.
1725397747362.png

The top left is an autorun that moves the bookshelf over whenever the player enters the map.
1725397847967.png

My issue is I want it to run every time the player enters the map, unless my bookcase says that it's opened.
1725397903974.png



I don't know what to do anymore at this point. Is it possible to run an Autorun event once before it stops, then RUNS ONCE AGAIN if the player leaves and re-enters the map, with the exception of the player having already 'opened the secret entrance' using the variable?

So sorry for the inconvenience, and thank you a bunch for the answers ahead of time.
You can try the "Erase Event" command at the end of your Autorun.
It will remove the event, until you re-enter the map.

Other solution would be, to activate a Switch at the end of your Autorun, to end it. And set this Switch to OFF on every way to leave the room (exits, teleport events, etc.).
THANK YOU. I tried the exact same thing you mentioned, but it'd never fade the screen back in again after opening the bookshelf and setting a variable.
Turns out I'd forgotten to set the second page with the fadein to autorun.

Cheers!

Original thread: https://forums.rpgmakerweb.com/threads/help-run-autorun-event-content-once-then-stop-until-map-is-loaded-again.171645/