Character stuck after event

So I was working on a short game, when I wanted to create an even. The point of the event was to activate a switch which  allowed my character to move to other rooms.
However, the weird thing is that it paralyses my character. After triple checking, I found that it was the switch that somehow caused it. Any ideas? (event code attached)

Code.png
This event doesn't appear to be the problem. It's likely whatever The Quest for Dr. P does, or maybe whatever you have on the second page. If either of those switches are triggering an auto run event, that would freeze the player character.
most likely you made a common event into an autorun without using it.


If the party cannot turn or move, then you have an active autorun.


Which means that turning on one of the switches is activating that autorun.


This could either be the second event page if that is triggered by the self-switch, or whatever is triggered by the switch #1


There are a few scripts that use switch #1 by default if they are added without configuring it, or it can be a common event because the switch #1 is also the default for common events set to autorun or parallel.


So best guess is that you changed an unused and empty common event to autorun while exploring the database and forgot to change it back - and now your switch is activating it.
Well the point of the switch is to allow the character to move through transfer events (code for said transfer events underneath) 
As for page 2, it does nothing other activate when the self switch A is set to ON.


 

Untitled.png

Emptycode.png

TransferCode.png
Like they said, you probably assigned switch 1 to something else and forgot about it, which means you must use a different switch. Try switch 101. If the problem goes away, that means switch 1 was assigned by accident to something else (check your scripts and your common events, as those are the common locations.)
It worked, thanks lads!
FYI - Alt + PrintScreen will capture only the active window, which makes your event code much easier for us to read.
So does this mean that the thread can be closed?  If it does, please report your opening post (the report button is just right of the time of posting) and ask for it to be closed.  Mods might miss a report here, but will see a report.


Thanks.
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/character-stuck-after-event.69156/