Self switch not working for some reason

Please let this be a simple mistake i made...

I just have this one cutscene that has the possibility to play differently wether or not the player is alone once meeting this character for the first time. However the self switch made to end the cutscene isn't working and it gets the player get stuck.
Here is the code:
1728410733978.png

1728410754495.png

1728410771814.png


1728410800840.png

This same event was working just fine before i made some small tweaks with variables. I don't know. I started a new game and still, the problem still persists with the player getting stuck once the cutscene is done. If anyone helps, i'd be super happy!!!!
Does the "Jess alts" Variable kickoff another event, if the Number changes?
However the self switch made to end the cutscene isn't working and it gets the player get stuck.
That seems wrong.

If the self switch "wasn't working," then the event would be continuously repeating itself - is that what's happening?

If that's not the case, and the player is just stuck when the scene is done, then it seems more likely you have another autorun going someplace that you lost track of. Perhaps something you activated with variable 2.
Does the "Jess alts" Variable kickoff another event, if the Number changes?
it does, leading to other possible dialogues.
1728411898234.png

That and some small influences on other cutscenes, which i'm still working on.
1728411948630.png
You didn't need to show any of those screenshots - none of them have variable 2 as a condition for an Autorun event, so they can't have anything to do with the character being unable to move.
Well, the action button one shouldn't be a problem.
Since "Jess alts"=0 was kind of used as a condition for the first event, I assumed, there are more like that. If the one you're working on at the same map, it can interfere of course. As of now, it is an empty event as soon as =1 or =2 becomes true and you're stuck because of that (if it is active).
That seems wrong.

If the self switch "wasn't working," then the event would be continuously repeating itself - is that what's happening?

If that's not the case, and the player is just stuck when the scene is done, then it seems more likely you have another autorun going someplace that you lost track of. Perhaps something you activated with variable 2.
Ah, yes, you are right. The cutscene is not repeating itself. Apologies.

But even so, i'm looking for the autorun that triggers the variable 2 on the same map... And can't find it. This is the closest to a variable trigger in a conditional branch:
1728412221285.png

The actual event that triggers something with the variable 2 is this one which turns the variable into 3:
1728412276905.png

Can events interfere other events across maps? Because what i just showed you was working just fine earlier, it was just up until i put one conditional branch inside another one that things started getting weird.
Please check your common events - all of them.

but especially the CE's you're NOT using.
if you had accidentally switched one of them to autorun while exploring the editor and forgot to change it back, it will automatically activate on whatever switch it is set to - and an empty autorun CE would have exactly this behaviour.
Do you have several AutoRuns on the same map, all of them set up with a Conditional Branch like "Jess alts = 0", "=1", "=2", etc.?

In that case, all of them will run, one after another, but only one condition is met. The other ones will do the Self Switch A right away. All of them could be part of the issue.

Maybe one of the empty pages, switched on by Selfswitch is set to Autorun. Maybe an empty condition turns true and loops.

i'm looking for the autorun that triggers the variable 2 on the same map... And can't find it.

There is an Event Searcher in the Toolbar. You can search for all Events in your game that use a specific Switch or Variable.
Please check your common events - all of them.

but especially the CE's you're NOT using.
if you had accidentally switched one of them to autorun while exploring the editor and forgot to change it back, it will automatically activate on whatever switch it is set to - and an empty autorun CE would have exactly this behaviour.
The map contains 5 events, two of which aren't cutscenes and don't have autorun triggered. The remaining 3 are the alternative cutscenes, checked every single one of them, and there isn't any empty autorun CE. Zia suggested that the issue may be happening because i'm realying too much on variables that are trying to trigger one on top of another, i'll take a break and try regular switches instead and later post the results.
Most important might be to use the "Conditions" part on the left instead of the Conditional Branch right now. It'll prevent from unwanted events to run in the first place.
If it turns out to be the variables, then check if you have any plugin that has one of them configured for special functions.

some plugins allow you to configure switches or variables to control them, that is indicated by the plugin properties containing a line for a switch or variable ID.
If you forgot to configure that (set it to a variable unused and name the variable so you'll know what it does with the plugin), then you can accidentally use the same variable in an event, and the plugin might be overwriting it for its own function, messing up your events.
The remaining 3 are the alternative cutscenes, checked every single one of them, and there isn't any empty autorun CE. Zia suggested that the issue may be happening because i'm realying too much on variables that are trying to trigger one on top of another, i'll take a break and try regular switches instead
That has nothing to do with it. It's not like there's some difference between variables and switches.

As you've already been told, you have to look at any autorun events. Why do you have multiple autorun events on one map? What do any other autorun pages look like?

And, as Andar pointed out, double check your common events, see if you have something autorun in there that's getting activated by that variable.
The event commands do not matter; focus on the page conditions. Even with no commands at all, an autorun event will suppress normal player input responses (movement, menu) while running.

What does the rest of EV003 look like? I.e. page 2 and the last part of page 1.
The event commands do not matter; focus on the page conditions. Even with no commands at all, an autorun event will suppress normal player input responses (movement, menu) while running.

What does the rest of EV003 look like? I.e. page 2 and the last part of page 1.
Here is the last part of page 1 and page 2 of EV003:
1728418842655.png

1728418864876.png


And to try and answer what Turan asked earlier, the main reasons for multiple auotrun events on the same map is to enable multiple versions of the same cutscene depending on the player's choices. And as to what any other autorun pages look like, they look roughly the same, only difference being that one event that has one conditional branch inside another one.

Oh, and i mistook common events for regular events. I don't have any common events(the database ones). To be honest, today was the first time i've heard of common events.
to make sure SelfSwitch A is activated on autorun (even if alt jess 2 is not present,
make the selfSwitch 1 above in the condition as well, or an else handle.

just set "alt jess = 3" doesn't a think either.

you can also use in a condition branch:

if: script: $gameVariables.value(2) > 0
SelfSwitch A is ON

the bottom as well, so it get executed if false as well.

there are many ways, even with jump to label if false or true to make
sure SelfSwitch is activated.
when dealing with long dialogues, try to sum up all the interactions to one common event, and work with the flow in the map event with one or two lines inside the larger control structures.
you're running your whole dialogue within a conditional that checks a variable, while the event itself has a space to check for variables. You could transfer that check to the event spawning routine, and remove it from the general flow. With that, you're left with one or two lines to point to a common event, and the rest of the page is free for you to read the whole thing in one glance.
once it's all working properly, you can move the whole block back from the CE to the event if you really have to.

the real solution here would be to WRITE DOWN THE FLOW somewhere, so you can check it properly!
this is the build in progress... write the blueprint proper, first!
Greetings,

A great deal has been said already in this thread so I won't get into theories about what's going on, but I'd like to offer some troubleshooting advice for this issue, since from reading your responses you seem a bit lost on where to look. Happens to the best of us 🙂.

Take the main autorun event and place it on a brand new map with nothing but walkable floor tiles. Move your character spawn there and run a playtest.

If after the event on the new map you aren't getting locked in place, then you'll know it is likely the result of another autorun event on your actual map firing immediately.

If you do still get locked, then it's likely either the main event is still running, or you have some outside interference relating to your variables or switches. Probably a plugin.

This should help you narrow down what is causing your issue and allow you to focus your bugfixing efforts on fewer possibilities.
Here is the last part of page 1 and page 2 of EV003:
View attachment 319988

And to try and answer what Turan asked earlier, the main reasons for multiple auotrun events on the same map is to enable multiple versions of the same cutscene depending on the player's choices. And as to what any other autorun pages look like, they look roughly the same, only difference being that one event that has one conditional branch inside another one.

Oh, and i mistook common events for regular events. I don't have any common events(the database ones). To be honest, today was the first time i've heard of common events.

I guess, Event003 is an issue. As I read it from the screenshots all over the thread - as long as Jess alts is NOT 3, this will run infinite and gets you stuck. The Self Switch B is inside of the condition, so the Autorun is always on. If you get used to the conditions on the left, you can avoid it.

Also, when using the Conditions on the left, you can put all your versions of your Cutscene into one event by using separate pages. But either way, make sure, only the version is running, that is actually needed. Right now you always run all versions, but "hide" or "skip" the not needed code.
I don't have any common events
wrong - you have common events, because the database can't be disabled.

and I specifically pointed out above to check those CE that you do NOT use - which would be all of them if you're not using any.
you would not be the first user who changed something while exploring the editor and then forgot about it because you never used that feature.

Original thread: https://forums.rpgmakerweb.com/threads/self-switch-not-working-for-some-reason.172465/