Edge of Map Variables - Help

Not thinking about how much a pain this might cause in the end I made this pretty large map that I ended up cutting in two with the same tilesets: Map 085 to 231 and vice versa. I'm trying to now connect the two by using a variable edge of map region event. 


With a little self-research this is what I have thus far, far as what's in the image with the open event. I'm currently using Region 15 along the bottom edge of Map 085 in hopes to get the other side (e.g. 231) were the yellow X's are followed by the orange coordinates. I know I'm doing a few things wrong because I keep getting the error: "Data/Map000.rvdata2 can't be found!" probably meaning I didn't specify the map ID.


Ultimately I need some words of guidance and any help is appreciated. 


Current Variables.png


Current Variables2.png
yes, you're doing a lot of things wrong - including that you don't understand how to use variables in conditional branches.


your conditional branch will always be true, because you're checking if a variable is identical to itself - it doesn't matter which value is inside, it will always be identical.


And that variable 61 contains the value zero, probably because it was never set - and because there is no map ID zero, you get the error.


I suggest really thinking through what you want, and describe to us the logic you want to achive instead of the commands itself, because there is absolutely no reason to use a region ID in your idea.


I'm guessing that you mixed up two completely unrelated methods of transfer - you decide to use one method and only that method, not mixing them together - the region ID is used if there is no event set on player touch at all.
yes, you're doing a lot of things wrong - including that you don't understand how to use variables in conditional branches.


your conditional branch will always be true, because you're checking if a variable is identical to itself - it doesn't matter which value is inside, it will always be identical.


And that variable 61 contains the value zero, probably because it was never set - and because there is no map ID zero, you get the error.


I suggest really thinking through what you want, and describe to us the logic you want to achive instead of the commands itself, because there is absolutely no reason to use a region ID in your idea.


I'm guessing that you mixed up two completely unrelated methods of transfer - you decide to use one method and only that method, not mixing them together - the region ID is used if there is no event set on player touch at all.

 I admit I am a little weak it comes to variables. The idea I was going for was trying to connect certain parts of Map A to Map B (both made with the same tilesets) and connect Map B to A using the x, y coordinates through region # I found in another person's post using here without getting that error.  edit:  "if player steps on region 15 then by x, y at that spot on Map A player should appear on Map B on the adjacent coordinates x, y."
@scarletjon that tutorial has several mistakes in it, and you didn't even copy it correctly because you missed the third control variable command. So no wonder that nothing works.


contrary to the comment in that tutorial, there is an event command to load the region ID of a position into a variable - it's get location info.


However, the entire structure given there is wrong, and it completely skips over the fact that it needs to be a parallel process to work, not on player touch...


Here is a quick screenshot of something that should workmapedgepp.png
@AndarSo from what you provided I understood everything up to the conditional branch = to the Player Region that's No. 15, but in dissecting each piece so I get it I don't fully understand what you did with the Target Map, X and Y.  With that conditional breach = to Region 15 is 12 of what you have equal to map 12 for example of where you're going to?


And do you mind elaborating on X and Y of what you have here, as in why you have it set to 1 for Y and X to the Player X than to number?


I'm sorry if you put all this in context in the the comments, I'm trying to get it all, honest.
Actually, x should be a static value, and y should be the player's Y value.  If you're transferring from the left map to the right one, X will be 0.  If you're transferring from the right map to the left one, X will be the width of the left map minus 1.


That will say to move the player to the left or right of the other map, at their current Y position.

Original thread: https://forums.rpgmakerweb.com/threads/edge-of-map-variables-help.72493/