Teleport to where ship was left.

I have seen a few similar posts, but nothing that quite helped. I have the standard I want my player to be able to navigate his ship (a map of) then go back to the ship where it left off. I know how to do the transport to specific location and automatically board a vehicle. And i already have the button mapped and working to take the player to inside the ship from the ship navigation screen. Just cant get it to take me back to where the ship was left specifically.
I really just want to figurehow to make it so when iinteract with the "helm" event it takes me to where i left the ship (and boards it) I have a very basic understanding (script kiddy) of using scripts and the more complex add-ons configuration.
You'll need to save those coordinates into three variables before the teleport, and then use those three variables as the teleport target.

absolutely no need for a script, just a series of control variable commands before or independent of the teleport command.
That's the method i expected and was playing with, but don't know how to get it to store the right coordinates as the variables.
you click on the "game data" section (the one that defaults to map ID).
That map ID is the first of the three values to store into a variable.

and if you click on the dots behind map id, you get to the next window where you can select the other game data - including x and y coordinates of either an event or the player.

you just have to select the correct source for the map xy and if needed use a few more control variables to calculate a different position (like in front of the player instead of on top of the player and so on.

if you don't know how to use the control variable command in that detail, I suggest you look for a game called "Variables guide" here on this forum.
I solved teleporting to the boat by having the player teleport next to the boat and jump around the boat until they are able to successfully enter the boat. This presumes your boat is next to a land tile:
1. Capture the boat's current mapid and coordinates to 3 variables with a fourth variable that is to place the player below the boat:

$gameVariables.setValue(153,$gameMap._vehicles[1]._mapId);

$gameVariables.setValue(154,$gameMap._vehicles[1].x);

$gameVariables.setValue(155,$gameMap._vehicles[1].y);

$gameVariables.setValue(156,$gameMap._vehicles[1].y + 1);

2. Use the "Fadeout the screen" command. Transfer the player right next to the boat using the variables you created and set movement so player faces the boat. Use the "Get On/Off vehicle" command.
3. Wait 30 frames then use a conditional statement to see if the player is not on the boat.
4. If they are not on the boat the set a movement to have the player jump to another side of the boat and have the player face the boat.
5. Repeat conditional check to see if the player is on the boat and jump the player around until they are on the boat.
6. Use the "Fadein the screen" command.

It is complex, but it works for me. See the attached screenshots.
@sflynn1812 I don't see the point in having four variables - why do you need to keep the y in 155 and do math with it in 156 instead of just saving the y once and doing math with it in the same variable?

Besides, if you're using some script calls, why not also use the script call for transfer player and use 0 variables? 😉

Then, all of the conditionals are unnecessary - so long as you're next to a vehicle and facing it, you can board it.

Also, the OP who asked how to do this hasn't been on the site in two years...

Original thread: https://forums.rpgmakerweb.com/threads/teleport-to-where-ship-was-left.143362/