Double door entrance, but one door opening when it is not supposed to.

On the entrance to the buildng, there is a double door entrance. When a character walks through the lobby and transferred to the right side door, the left side door opens instead, THEN the right side door opens. Strange thing is, this only happens the first time, after that, everything works as it should. I have included a screenshot of the door actions, each door is controlled by a different switch, has a different event ID, and has a different even name, yet one event activates when it shouldn't but only once. Anyone know the cause? Both doors are operated using different switches, switch three seems to be activating even though it isn't set to ON. Like I said, it only happens the first time in the game, after that everything works normally. I have tried copying the left and right door instructions, (but making sure I add the proper switches and teleport instructions) but to no avail

Again if you want a short video, I will be happy to take one. Obviously trying to capture a screenshot of the whole event is impossible.

door.png
Maybe edit the Movement Route, change it from This Event to a different thing, save it, then edit and change it back?

I don't think it's a thing, but maybe copy/pasting it somehow retained a reference to the original event.

What do pages 1 have? Just nothing, solid door?
Thanks to everyone who responded, I have redone the doors from scratch, (see image). What happens now is if the character walks through the right hand door, the left door activates, opens, player moves forward one step (as per the event), the left door the closes and disappears. The right hand door then activates, opens, the character walks two steps (ar per the event) the door then closes, and disappears.

The disappearing part I'm not too concerned with, I will work on that later, it's the event occuring even when it's trigger isn't activated. As you can see in the image, each door has its own seperate trigger and event.

I know each door has a different sequence when it comes to the player moving, I am working on refining the process on just the right door only, until we can figure this out.

The transfer L/R events are on a seperate map, the lobby of the building.

Each door is activated by the respective L Entrance and R Entrance switches

door.png
If you want both doors to open when you interact with one of them, why do you have two different switches and two events handling it?
If you want both doors to open when you interact with one of them
I don't believe that's what's wanted.
Greetings @Gunmetal_Dreams,

Double check whether or not you are running any plugins or other events that may be setting these switches to ON before the transfer event triggers.

I would guess what is happening, since this bug only occurs the first time you run the transfer, is that both switches are currently ON when you first transfer the map. Thus, both door opening animations play after the transfer occurs.

After that, when you repeat the process, it works fine, because in both of the door events the switches have now been turned off, so your transfer event is only going to activate one door.

Edit: One thing you could try, if your project is big and you're not sure where to look, is creating a new project with no plugins, and bring over just these door and transfer events. Check how they run on that blank project. If everything runs perfectly fine there, you'll know the culprit is a plugin or another event somewhere on your main project.
Rather than worrying about copying into a different project and that stuff - during play, press F8.

Go to the Console tab and paste in each of these lines:
Code:
$gameSwitches.value(3)
$gameSwitches.value(4)

If either of them is true, then Niniann's suggestion is spot on and you're accidentally turning one of those switches on someplace else.

You can also use the Event Searcher tool in the editor to see every place that the switches are referenced, but that won't cover anyplace in plugins or notetags.

1705983309706.png
If you want both doors to open when you interact with one of them, why do you have two different switches and two events handling it?
Hi Trihan, no , I just want the one door to open depending on which tile the character used to exit the lobby.

Greetings @Gunmetal_Dreams,

Double check whether or not you are running any plugins or other events that may be setting these switches to ON before the transfer event triggers.

I would guess what is happening, since this bug only occurs the first time you run the transfer, is that both switches are currently ON when you first transfer the map. Thus, both door opening animations play after the transfer occurs.

After that, when you repeat the process, it works fine, because in both of the door events the switches have now been turned off, so your transfer event is only going to activate one door.

Edit: One thing you could try, if your project is big and you're not sure where to look, is creating a new project with no plugins, and bring over just these door and transfer events. Check how they run on that blank project. If everything runs perfectly fine there, you'll know the culprit is a plugin or another event somewhere on your main project.
Thanks for the reply, I'm only using the one plugin, it's the sprite extender plugin, I will disable it and see what happens.

Rather than worrying about copying into a different project and that stuff - during play, press F8.

Go to the Console tab and paste in each of these lines:
Code:
$gameSwitches.value(3)
$gameSwitches.value(4)

If either of them is true, then Niniann's suggestion is spot on and you're accidentally turning one of those switches on someplace else.

You can also use the Event Searcher tool in the editor to see every place that the switches are referenced, but that won't cover anyplace in plugins or notetags.

View attachment 292735
Ok, I will try that. Thanks for the reply

I deleted the entire map and just had the doors and a bit of floor, same problem occurs, I will paste both the door commands, and also the readout from the console.

door.png



3.png


It says false, yet both switches activated. Again the weird thing is it only happens once when the switch activates for the first time in the game, after that everything works as it should.
I think it might be something to do with you transferring the player before the movement route for the other door.
why not simple make the door as 1? and it open as normal.
that way, it would be far easier as well.
why not simple make the door as 1? and it open as normal.
that way, it would be far easier as well.
That's not really a useful answer here, since OP is going for the double door look. Plenty of places have double doors that can have only one side open at a time.
Just to mention it, you can see it's only giving you one result for two commands - you should be entering those lines one at a time into the console.
The transfer is to another map, correct? You have a map for the entrance, and a map for the lobby. So basically you have you have an L and R door event, for both the entrance map and the lobby map, so four "door" events total across two maps?

Assuming this I tried to recreate it in a stripped down fashion... and while doing this got a little puzzled why you would need a page 2 to begin with, since you want the door closing animation to play before the transfer happens. Would the following work? Just copy this event and tweak the Transfer Player coordinates.

◆Play SE:Open1 (90, 100, 0)
◆Set Movement Route:This Event (Wait)
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Up
: :◇Through ON
◆Set Movement Route:Player (Skip, Wait)
: :◇1 Step Forward
: :◇1 Step Forward
◆Set Movement Route:This Event (Wait)
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Down
: :◇Through OFF
◆Play SE:Move1 (90, 100, 0)
◆Transfer Player:MAP002 (12,4)



Do point out if I misunderstood your requirements... if you want the door close animation to happen after a map transfer, you'd indeed need a page 2.
That's not really a useful answer here, since OP is going for the double door look. Plenty of places have double doors that can have only one side open at a time.
even so, a door sprite = 3 x 4 so you can use each column different.
just right side, just left side or both (depends on the column you select).

the process is than the same, so 2 event, 1 for left side, 1 for right side, and same
down, left, right, up is required without issues.

but 2 seperate doors can work too as it also require 2 events anyway 😉


Maybe I'm missing something here - is this or something similar to this the goal? The video above is an example of what I think you are looking for.

If not, please make a video of what you have (also, show all of your code including the other data in the event like the trigger, priority, etc. That way, we can rule out other issues/possibilities).

I'm only using one page, no switches, per event (2 events per map) - action button trigger. If I wanted to make both doors open, I would just event it from each event.

Event Outside Map:

DoubleDoorEvent.png

Event Inside Cave:

DoubleDoorEventInside.png
Yeah, that's exactly what I am looking for. Will try your method and see how it goes.
Maybe I'm missing something here - is this or something similar to this the goal? The video above is an example of what I think you are looking for.

If not, please make a video of what you have (also, show all of your code including the other data in the event like the trigger, priority, etc. That way, we can rule out other issues/possibilities).

I'm only using one page, no switches, per event (2 events per map) - action button trigger. If I wanted to make both doors open, I would just event it from each event.

Event Outside Map:


Event Inside Cave:

Thanks, I took a look at your method, so it's not possible to have the door open when your character walks out, without using a trigger?
Thanks, I took a look at your method, so it's not possible to have the door open when your character walks out, without using a trigger?
Are you asking if it is possible to trigger the event (have the door open) before you get to it?

You can do it with a parallel process to check player x/y or a plugin that changes the hitbox of the event (may or may not work). Or, have a dummy event below the player in front of the door be a remote trigger for the door event.
Basically what I am looking for is player walks onto the transfer player tile, gets transferred to the door tile, door opens and the player walks out.
In that case I would suggest to have an autorun event on a random tile on your map control both the door and the player walking.

The player transfers to the map, facing DOWN
Autorun event runs, and checks if the player is on (or behind) the door tile. If not, erase event.
If yes, have it run something like the following:

◆Play SE:Open1 (90, 100, 0)
◆Set Movement Route:Door (Wait)
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Up
: :◇Through ON
◆Set Movement Route:Player (Skip, Wait)
: :◇1 Step Forward
: :◇1 Step Forward
◆Set Movement Route:Door (Wait)
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Down
: :◇Through OFF
◆Erase Event

Original thread: https://forums.rpgmakerweb.com/threads/double-door-entrance-but-one-door-opening-when-it-is-not-supposed-to.164879/