Player can no longer move if certain switch is turned on, even after its turned off.

Ok, really weird scenario that i've been trying to figure out for the past hour. I'll try my best to explain:

I have six door events. each door leads to a different room. As part of the transfer event for each door, they each turn on switch #250. after being transfered to any of the rooms, an autorun event which requires switch #250 to be on runs, then at the end of that event, it turns switch #250 off.

all is fine except for the last room. Player immediately loses ability to move as soon as they're transfered into the sixth room, even after switch #250 is turned off at the end of the event.

I started deleting events in the last room one by one to see which one was causing some sort of interference but after deleting literally all of them, the player was still unable to move as soon as they entered the room.

Now here's the weirdest part. using the f9 menu to turn on switch #250 at ANY POINT also prevents the player from being able to move, even after its turned off again with the f9 menu. I tried this on several maps, even a compleltely fresh one. had this issue every time. This is even more weird when again, the player's movement is unaffected by the switch being used in the first five room events I mentioned earlier.

I hope im explaining this well but if I need to explain it better please let me know. If this issue can't be solved its no big deal. i'll probably just use a new switch and make sure to playtest after every instance that i insert it into an event.
the player's movement is unaffected by the switch being used in the first five room events I mentioned earlier.
if you're sure the problem isn't the switch, then look to the map.
can you move if you transfer to a blank map that still resets the switch as intended?
it might be a tile with the wrong passability getting you stuck.
if you're sure the problem isn't the switch, then look to the map.
can you move if you transfer to a blank map that still resets the switch as intended?
it might be a tile with the wrong passability getting you stuck.
Yes i've tried that already. doesn't matter what map i'm on, messing with the switch at all in the f9 menu locks the player's movement. Even on a completly blank map and even in the rooms where the switch is turned on/off by the event where it doesn't lock the player's movement. (I used CTRL to make sure it wasn't anything to do with impassable tiles)

Ok i'm testing it on a fresh save file and now the issue of being locked out of movement occurs in every room, not just the last one. The switch is definitley f**ked somehow.

Also discovered that the player's movement can't be changed by other events either while this switch has ever been turned on
any parallel common events that might be watching 250?
any parallel common events that might be watching 250?
Thats what I thought might be happening. I have a lot of common events so I will have to go through them thoroughly and check. I'll update when i've gone through them all
I'd also guess it's a common event, but it might also be a plugin that uses switches. If you don't find anything in your common events and parallel processes, you could investigate in this direction as well.
the behaviour points to an autorun rather than a parallel

and best candidates are common events NOT named, as in you changed the trigger but then decided to not use the event and forgot to change the trigger back.

however I still think it is something else because a common event would be disabled with the switch off.

can the player turn when movement is blocked? if not it is an autorun or something similar, if yes it is a passability problem

do you have a plugin that may block player movement?

one possibility is a called common event with a parallel/autorun trigger - never mix that, only call common events that are set to "none" trigger (no matter if called by command or attached by skill)
A non-Parallel (e.g. Autorun) event that has started will run to completion, and only 1 non-Parallel event can run at any given time. By contrast, a Parallel event will run until the moment it is turned off, and is not interrupted by other events...so there might be a Parallel event constantly turning the switch back on under certain circumstances.
Spoiler: technical details
When an event starts, its commands are passed into the applicable interpreter. The interpreter is responsible for running the commands henceforth.

Non-Parallel events all share the same interpreter, which persists for a given playthrough: once they start, they keep going to the end.

Parallel events each have their own interpreter, which terminates immediately whenever the event is disabled, e.g. due to being erased, changing page, or having its switch turned off.
What is in your autorun event? Screenshot(s) might help. E.g. is there a loop that may, under certain conditions, keep going forever? Or a player move route, not marked "Skip if Cannot Move", that might get blocked? Etc.

You could try using Tools -> Event Searcher to look for this switch. The recent v1.9.0 update added checks for page & common event conditions. Maybe there's another autorun or something you've forgotten about.

I second Andar's suggestions, too. (I don't think a common event's trigger affects how its commands are parsed by the Common Event command, but it's still good organisation to only call common events with Trigger: None.)
I don't think a common event's trigger affects how its commands are parsed by the Common Event command,
it doesn't - the problem is the return.

a triggered AR/PP is supposed to be looping, while a call common event expects a return after the event had run once.

and I know of several cases where the engine mixed that up, like continuing the CE loop even if the switch was off and so on. It probably depends on which commands are inside the CE and which core versions and so on, but I think it's better to make it work correctly.

Original thread: https://forums.rpgmakerweb.com/threads/player-can-no-longer-move-if-certain-switch-is-turned-on-even-after-its-turned-off.175654/