RMMZ - One-Time Use Teleport not behaving correctly

I'm having trouble making a teleport event (to a cutscene) go away after the cutscene ends. The normal self switch logic that I've used in dozens of other places doesn't seem to be working. Erase event, set event location, self switches, variables...this event seems to be immune to all of them. I'm totally stumped.

I did a quick check of the forums and google but couldn't find anyone with this specific issue. Also, Chat GPT wasn't able to identify a problem with my eventing either.

Plugins shouldn't be my issue. Currently using the following:

-AltMenuScreen
-GALV_LayerGraphics
-Ultimate_Gacha_Minigame
-SVActorPosition
-MOG_AnimatedText
-TextPicture


Any help would be greatly appreciated 🙂
I don't have a solution but this script call will help us diagnose the problem.

The following is a script call you can use to force that event to refresh. Does the event behave correctly when we manually tell it to refresh?
Code:
$gameMap.event(4).refresh();
Also, does the bug still trigger if you turn off every plugin?
When someone has a problem like yours, it is most likely the timing of when the switch is called.
and unfortunately your "latest try" to solve the problem is especially convoluted.

What do you want to happen?
There is no cutscene in that event, so I assume the cutscene is on the other map?
and you only want to be transferred to that other map once?
You should not use a Conditional Branch to check for the Self-Switch here. The RPG Maker's event system with its pages already covers it.

1. Page:
Code:
Set Self-Switch ON
Teleport to cutscene

2. Page:
Code:
(condition on event page: Self-Switch is ON)
blank page, nothing here

Any additional complexity will only make you fight against the engine.
I figured it out...I'm a dummy. I'm still relatively new to the engine and was working at this while exhausted... I was playtesting from inside the cutscene, so the self switch for the initial teleport to deactivate the event was never being triggered....rookie mistake lol.

Thank you folks for the quick replies, I appreciate you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-one-time-use-teleport-not-behaving-correctly.181283/