After doing an event then setting Self Control Switch, Autorun Event on the next page lets players move once it activates.

No other event that's autorun has done this thus far. Only this one. After I check for a player's HP being equal to or less than zero, I play a cut-scene, and then set that event's page to Control Self Switch C = ON, then the next page has condition for Self Switch C to be active, and autorun. But this last page allows a player to move despite being Autorun, so I had the genius idea of using a loop to force the event to continuously run:
◆Loop ◆If:Script:$gameParty.leader().hp < 9999 ◆ :Else ◆Break Loop ◆ :End ◆ :Repeat Above

But this disallows the player to close the game (even through the close window button on the Window itself.) I was wondering why the autorun event page is allowing a player to move despite that not being possible. Here's what the page before looks like, it is also set to autorun:


◆Fadeout BGM:10 seconds ◆Wait:300 frames ◆Set Weather Effect:None, 60 frames ◆Text:None, None, Dim, Bottom :Text:It seems you're out of luck. :Text:Was fun while it lasted. ◆Play SE:Laugh3 (25, 100, 0) ◆Wait:120 frames ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:200 ◆Wait:60 frames ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:150 ◆Wait:60 frames ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:100 ◆Wait:60 frames ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:50 ◆Wait:60 frames ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:25 ◆Wait:60 frames ◆Tint Screen:(-153,-153,-153,0), 120 frames ◆Play BGS:Depths1 (35, 50, 0) ◆Set Movement Route:Player (Wait) :Set Movement Route:◇Opacity:13 ◆Wait:60 frames ◆Change Transparency:ON ◆Control Self Switch:C = ON
Because there is nothing to execute in that autorun page...?
Because there is nothing to execute in that autorun page...?
What do you recommend I put there that doesn't cause the game to not be able to be closed? Because putting a loop in it causes that.
I don't really understand why you insist on autorun? What are you trying to achieve? You want to lock the player movement and being able to exit the game via menu?
Yes, I want to lock character movement, and I want to be able to close the game window. The loop I posted breaks the ability to close the game window, since the game, I guess? Lags?
Please post screenshots of the full event window for all event tabs on your event.
Please post screenshots of the full event window for all event tabs on your event.
1680610690717.png
1680610718986.png
1680610755403.png
1680610774616.png
1680610808716.png


Note that I had the Loop on the last page before, which would allow the player to not move, but the game engine lagged, disallowing the player to close the game window through the red X at the top of the Window (As in, the actual windows close button for the game):

1680610912364.png
You have a few flaws/misunderstandings in what you're trying to do.

- Autorun and parallel events already loop, they attempt to execute every frame, 60 times per second. I've never tried to make an empty Autorun (because that seems broken to me), but I assume fizzly is correct that it didn't block player input because it wasn't actually doing anything.

- Putting a loop command inside of that looping event is going to make the engine try to iterate that loop as many times as it can every 1/60th of a second. That's why your game froze up, you were basically telling it to try to use your entire CPU to do nothing.

- It's still unclear exactly what you're trying to achieve. If this works properly, it's going to look like your game randomly froze up. If I were a player, I would quit out and I might not start the game up again to experience that bug a second time.

If you really want to achieve that, why don't you just put a Wait command in the Autorun? I think the highest value you can input is 999, which will make it repeat every 16 and a half seconds - that won't negatively affect anyone's computer.
Autorun will run the event until it reaches an end. Until it is complete, player movement is prevented.
If you want something to run in the background while the player is able to continue playing the game, you need to change the event to be a parallel event.

And auto-run event will reach an end whenever it exits the current event processing either by activating/deactivating a switch/variables that enables/disables another event tab, or by erasing the event with the erase event command.
If none of those conditions are met, the auto-run will run indefinitely and will lock the player.
While the event loops infinitely, the game will be processing and checking whatever data is present in the event tab. Without any wait frames, it will process this data every frame. Depending on what the check is and depending on what else is also running in the background (parallel events, plugins, weather effects, lighting effects) this rapid check can potentially slow the game down a lot. Therefore, it is always advised to use wait event commands at the end of your parallel/autorun/loops in order to reduce the amount of processing per frame. Set a wait time appropriate for the priority of the check.
Things that need to be checked often should have a wait time of 1 frame. Things that are less important to check can have longer wait times.

edit:
sniped by ATT :LZSteary:
The main reason I'm doing this is to cause "Soft deaths" in a sense. (I'm not a big fan of the game over screen.) I want people to think about what they've done and all that. I know some people want to get to doing another run/action/etc. as quickly as possible, and they're fine by doing that, they can close the game window.

This was a change done in FFXIV believe it or not, they increased the time it takes for the wipe script to happen in certain duties so people have time to think.
I don't see the functional difference between showing a Game Over screen and staying on the map darkened with sad music. So that's whatever, your personal preference.

What strikes me as poor UI development is the part where it locks the player there, trying to force them to think about what they've done, and they have to manually close the game. Your event is not the same as "increasing the time it takes for the wipe script," it's freezing the game there.

Offering the feedback for myself as a player of many games, if I encountered that I'd get a refund on Steam. But you do what you like with your game if you think there are people who will respond well to that.

Good luck with your project.
I just have a Guess, try this:
In your last Autorun Page insert this Eventcommand:
Conditional Branch (If) Button Cancel is Pressed, do Exit Game or Go to title Screen.
Thatway it should be locked until you press the Escape Button.

Original thread: https://forums.rpgmakerweb.com/threads/after-doing-an-event-then-setting-self-control-switch-autorun-event-on-the-next-page-lets-players-move-once-it-activates.156401/