My switches in a dialogue option stop working after the cutscenes

For some reason the switches i have for when the MC picks one of his friends which is integral to getting certain endings and such.

Screenshot (137).png

here is the moment the switch is turned on. the rest is pure dialogue and movements, no switches or variables whatsoever after this moment

Screenshot (138).png

this is the cutscene that happens right after the previous one, and the only switch there is the day 1 on switch,
Screenshot (139).png

this is an event i made to test if the important switch is still active, and it isn't, nothing happens when the player walks over the square, only the other two events is what has happened in between and only dialogue aside from the shown switches
the rest is pure dialogue and movements,
No, it is not - one of the commands you blackened out looks as if it is a transfer command.
Transfer commands that go to a new map (and that has to go to a new map to prevent the autorun from repeating) should always be the last command of an event.
That is because all events including the current one are deleted when changing maps, and as a result you can never be sure that the commands after the transfer are executed before they are deleted or not.

A second possibility is that the same switch is used elsewhere, especially if it is used in a plugin you forgot to configure correctly
I notice you have a Transfer Player command near the end of that event, but Autorun should allow the event to complete OK after transfer because the main interpreter remains intact on map transfer (it wouldn't work with Parallel). If you ever go back to that map, though, then the cutscene will trigger again.

Ideas:
  1. Have you tried using Tools -> Event Searcher to look for places where switch 35 is turned on/off?

  2. Are you using $gameSwitches.setValue in a script call somewhere?

  3. Are you testing from a new game (recommended) or a previous save?

  4. If you are using plugins: does the problem happen if you turn off all plugins, save your project to apply Plugin Manager changes, then test?

Original thread: https://forums.rpgmakerweb.com/threads/my-switches-in-a-dialogue-option-stop-working-after-the-cutscenes.159040/