Concerning Teleportation (See inside for details)

I apologize in advance for the vague title, but I could not find a way to properly explain my question in a short, concise manner. With this said, here is the premise of what I am attempting to do:

'The player will, when using their 'ship', have access to a key item called 'Anchor'. Using the Anchor while sailing will allow the player to 'stop' the ship and interact with the crew aboard it and/or buy gear from the Quartermaster. Upon using the Anchor again, the player is back on the world map sailing, starting from the exact same spot as when they used the Anchor.'

In a more system-oriented explanation, I would like to find a way to 'save' the player's location when they use the anchor on the world map, so that the common event attached to the anchor will properly warp them back from the ship map to the world map in the location (and preferably direction) that the player had initially been at. Is there a way within the game (or, if not, any known plugin allowing for the ability) to save the player's dynamic location upon the triggering of an event, storing it for later use, and then warping them back to that precise location when the event is later recalled?

Thank you in advance and happy creating,

Mister Bubbles.
You should be able to set two variables, one for the ship's X and one for the ship's Y.

Here's a real quick video I made to show how to do it. It's purely a demonstration, no sound or anything:
Ah, that should do nicely I'll give it a few test runs tomorrow. Thanks Zal'!

Honestly, I've avoided variables like the plague and just relied on events since Ace. I'll have to keep them in mind and look up a few other tutorials for the things I have in mind. . .

-Mister Bubbles.

Original thread: https://forums.rpgmakerweb.com/threads/concerning-teleportation-see-inside-for-details.49565/