Transfer Player problems

Alright, so, I'm probably doing something fundamentally wrong (probably several things), but I'm having an issue where transfer player is sending the player to a room that I hadn't made which has all of the ships, airships, and whatnot in it. I dunno if it's something conflicting with plugins, if it's just me performing amazing feats of ID:10T errors, or if it's something else entirely.

-The Common Event that transfers the player is called by a skill the player can obtain
-On call, checks the Map ID, Player X, Player Y, and Player Direction, and saves them into variables
-Goes through an if-else chain to check what direction the player is facing
-Adds/Subtracts to the Player X/Y variables by 3
-Checks if the location it will transfer to is invalid by saving the terrain tag as a variable, then checking it, as well as seeing if the changed variable is greater than or equal to a value set by an event on the map to determine the map's boundaries (Bad, I realize, if there's some other way to check these values, please let me know :I ) or less than 0, and doesn't transfer if so
-Transfers the player to MapID,PlayerX,PlayerY,

After a couple attempts at debugging with no real success, I added a transfer player that sends the player to the variables before they are modified (which works perfectly fine, so I suspect it is the addition/subtraction, although I can't for the life of me figure out why) and text boxes which display the values of the variables after each transfer.

I can send screenshots if needed.
Oh, and sorry for posting this here if that's not where stuff like this goes, I couldn't quite see anywhere more appropriate.

I've moved this thread to MV Support. Thank you.

Yes, I think the screenshots will help ^^
I know that the RMMV code has some kind of rescue-function that transfers the player to an empty map when you type an invalid map id, but I'm not sure if this map should contain boat and airship. I think there are small errors in the variable calculations and if-conditions, or conflicts with plugins.

Can you provide screenshots of your event code and/or plugins?

I hope this is not a needle in a haystack-problem ^^
So the player is meant to transfer to a different spot on the same map? That's the only way you could tell if a location was valid using terrain tags.

Does it happen every time? Or just some of the time? If only some of the time, see if you can see any pattern to when it works and when it doesn't - it might just be one or two places where you've used the wrong variable.

I suggest, before each Transfer command, you add a Show Text to display the map id, x and y location (variables) that you're going to transfer to.

What are the variable numbers you're using? If low values (esp variable 1), and you have plugins, it could be that you haven't set the plugins up correctly (which includes identifying available variables, allocating them to the plugin, then giving them names in the editor so you don't accidentally use them for something else) which is a fairly common mistake.
does the transfer work even if you force it to work incorrectly?

when in doubt, validate the error on purpose.
if it works, then move on to the error catch.
Ah, found my problem, I was saving the terrain tag to the MapID variable, I'm a moron

Provided Screenshots of me losing my mind as I forget how variables work:

Screenshot (19).png
Screenshot (20).png

^^Repeated for every direction 2, 4, 6, and 8, limited for testing purposes
Screenshot (21).png
Screenshot (22).png

Screenshot (23).png
Screenshot (24).png
Screenshot (25).png

Aside from my failure to debug properly, why did this happen? How come it didn't show the mapID var in the textbox as changed after the transfer? Does it go by the last valid definition of the MapID when forced to display? Anyways, thank you all for your help!

Original thread: https://forums.rpgmakerweb.com/threads/transfer-player-problems.120704/