How can I do this?

Hello, Im trying to do something that I think is pretty complicated.

I have 2 dungeons that mirror each other with slight differences. There are 3 torches in both dungeons, when the torches are lit in dungeon 1, you will be transported to dungeon 2. The torches can be lit in any order so depending on which one you light last, you will be transported to the exact same spot in dungeon #2. The same goes when you put out the fire in any of the torches in dungeon 2.

I am able to do all that except that my character transports to the same spot every time. And I also want to do the same thing in reverse, depending on which torch is put out first, you will be transported to the exact same spot in the dungeon 1.

The idea of this dungeon is that there are unreachable areas in dungeon 1 but not in dungeon 2. You light all the torches, go to dungeon 2 to the exact same spot that is unreachable in dungeon 1, put out the torch and you will end up in dungeon 1 in the spot that was unreachable in the first place. Can someone point me in the right direction? I hope I explained myself correctly.

Thanks in advance.
Just before the transfer, set two variables. One to store the player's X, one to store the Y. Then, in the transfer you can set it to transfer based on those variables.

edit: Actually, now that I think about it, you shouldn't need that. That would work only if the places in the dungeon were on the exact same tiles.

How do you have the transfers set up now? Screenshots would be good.
I set up variables, every time you light a torch it adds a variable. I have a separate parallel process event which transports you when the variable reaches 3 or greater.
You don't need the parallel process. That's probably why you are ending up at the same place.

In each torch event, add 1 to the check variable. Then have a conditional branch that checks the variable. If the condition (variable high enough) is met, that torch will transfer to the corresponding torch.

This way, you don't have to worry about a parallel process running (the more there are, the higher the potential for lag) and it can go exactly where you need it to go.
Ok I will try this tomorrow and I will let you know how it goes, thank you for your help.
I went ahead and quickly made screenshots of the event pages, just in case my explanation was confusing. I won't have computer access the next couple of days, so I thought I would leave this here just in case.

Spoiler
torchhelp1.png
torchhelp2.png
Thank you, it did work however not exactly what I wanted but I didn't explain myself correctly, it's kind of hard to explain what I wanna do, but this is good enough ill keep experimenting. Thank you for your help mlogan you will definitely get an honorable mention when my game is finished.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-do-this.82346/