Trouble with self switches not working

Hey there, I've been having trouble with this one event, previous events worked fine but I'm obviously doing something wrong here.

I have an event that autoruns, you move and talk, then it activates self control switch A and the event ends. There is a second page which has the condition of control switch A = on and nothing else on the page. However, when the player leaves the room and comes back, the event autoruns again.

I've tried setting a normal switch as well but that also hasn't worked. I'm not sure if this is caused by it being an autorun or not.

I've even tried setting the control switch to activate twice, once during the event and once at the end of the event to see if this fixed anything, sadly, it has not.

437957c70abff2e237a9c2dd9fd3b1e9.png

c3e5d252c75909483d6cc6a410dde0ca.png
0f4a142c0cf66ca3be3548e0a0ad1bca.png
Try removing the erase event command at the end - the self switch should see to that on its own because of the blank event page.
Try removing the erase event command at the end - the self switch should see to that on its own because of the blank event page.

Thanks for the advice, I gave it a try but the problem still persists.
are you sure that the event ever progresses to the point where the switch is flipped? I cant see the whole event, but if you put a show text command right after each time you tried setting the switch that says "switch flipped" or something, does it show?
The event looks correct.
So I think the problem is somewhere else.

Do you use some plugin that reset the map or events?
I am probably going blind in my old age, but I can see two "Jump to Label" commands, but no "Label" to jump to. You show the top and bottom of event page 1, but is there a bit missing in the middle?
I am probably going blind in my old age, but I can see two "Jump to Label" commands, but no "Label" to jump to. You show the top and bottom of event page 1, but is there a bit missing in the middle?
yeah, the scroll bar for the window shows that theres a missing middle section. also you can see the choices for a show choices command that isnt shown either (when: who are you / where is the room)
I'll bet there's a transfer player command in the middle that sends the player to sleep in their room.
Put the self switch change at the top of the event if it doesn't matter what the player chooses.
Then any jumps, labels, conditionals or whatever won't matter.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-self-switches-not-working.176881/