Force Stop Player/ Event Movement?

Hello everyone, I would need an answer to a solution I don't seem to be able to fix. I would require a script or something that stops and cancels any movement the player or an event would still have to do when their controlling event is closed, instead of still staying stuck to following all of those commands.

There is an event that will be lead by a kind of a state machine. This state machine is basically several Common Events that switch in between. However, the 3 movement events (one of which can be active per moment) has the event move on a route, everything have "wait" as command, since it seems Parallel Processes and JavaScript have a fun time skipping through all the non-Wait move commands, ending the event prematurely if I don't giff them Wait.
Another event handles that event's detection of the player, and if player is detected, the stance switches. However... the event is still stuck to following the rest of the move commands even if that Common Parallel Event had its switch closed (due to my needing to use Wait). Is there an option to cancel any remaining move commands? Only way I tried is to use Conditionals to check whether the event is on or off, and if it's off, the else would send the event to its end through Jump to Label. Did this and game crashed XD Guess doing 100 such if - else conditionals with Jump to Labels really doesn't make poor JSON files happy XD Like... I really don't want to do again such conditionals for each step to check event switch state.

Anyone could help? Thank you, hugs, you are loved and appreciated!
Sounds complicated. Especially when you mentioned labels... =_=

Did you know that event move route can be overridden with an empty command? Thus it will cancel any current active movement?
1596537053050.png


Suppose this event are parallel process, turning off the switch will forcefully stop the movement.
That's exactly right - at the end of the controlling event, just do a Movement Route on the player or any event you want to stop, with no movement commands. Make sure you don't set it to repeat.
O.O It was THAT simple? 😳 Dafuk... Yes, I know it sounds complicated, one of my downfalls is I can't create simple things XD Really!
Now... there are several command issues given with a few other commands in between at times. I will try add an empty move command to the event that closes the Switch of the Route commands.

RESPONSE: Okay folks, gotta congratulate you on yer wisdom, it does work, however my event still ignores region restrictions and moves in all possible ways XD My gosh, I broke the Matrix... Again... XD

Also, @Shaz, do you have an alarm system that warns you when a new post is made? You have a super-awesomely fast response feature. Also very informative, thank you folks, you are loved and appreciated, love ya both ^^ Hugs >😀<

Original thread: https://forums.rpgmakerweb.com/threads/force-stop-player-event-movement.124894/