Help: Autorun with Conditions

Hi, I'm new here. Maybe its a common question but I can't find an specific solution for this. Sorry if it is a noobish question.

This is what I want to do:

Protag starts in a Temple > Protag leaves the Temple > Protag talks with an NPC who activate a switch> Protag returns to temple and a cutscene is played just she enters.

The NPC activates a switch called "StoryPoint", and based on it I put an event in the temple that have a conditional to activate the cutscene. Because the cutscene appears just right the Protag enters the Temple, I put the event as AutoRun. My instructions are something like:

If StoryPoint = ON
(movement route)
Self Switch A = ON
End

if StoryPoint = OFF
(nothing is here)
End

So when StoryPoint is ON the cutscene plays right, and the player can move. However, when StoryPoint is OFF, the player can't do something, neither open the menu. And this is important because the Protag starts in the same room where that event is, the switch start as OFF.

I tried to make another Self Switch for the if StoryPoint = OFF and add another event page, but it doesn't fix anything. I even tried making another event just for if StoryPoint = OFF.

How can I end the loop for "if StoryPoint = OFF" without affecting "if StoryPoint = ON"? Or should I not use the AutoRun for this?

I'll attach my instructions, however they're in Spanish.
help.png
Try Eventcommand "Erase Event" if Story Point is Off, thatway the Event gets deleted until the Player reenters the Map.
That maybe works for your case.
I would use the switch 'StoryPoint' as a condition for the page. This way the autorun event will only run when that switch has been turned ON. Then, at the end of your autorun event add a SelfSwitch A ON, then create the next page of your event as a blank page with condition set to Self Switch A ON to essentially dispose of the event after it has run its course.

Original thread: https://forums.rpgmakerweb.com/threads/help-autorun-with-conditions.123186/