Save player location in MV with events?

Hello.

So I'm exploring my options of "fast travel" in my current project and I figured that a good way to actually do it is "borrow" the system from Diablo and Path of Exile games, where the player has an item which opens up a one-use portal to some sort of town or a safe haven.

However, either my brain is trying to mess with me today or I don't have enough knowledge for this. So I ask you this: Is it possible to "save" a player's position when using this item, so that when it's used again, it would throw the player into the same map, preferably the same location as well?
In a common event attached to the item:

Code:
Conditional Branch: Switch [In Safe Haven] is OFF
  Control Variables: [From Map] = Game Data > Other > Map ID
  Control Variables: [From X] = Game Data > Player's > X
  Control Variables: [From Y] = Game Data > Player's > Y
  Transfer (to safe haven)
  Control Switches: [In Safe Haven] = ON
Else
  Transfer to [From Map] to [From X], [From Y]
  Control Switches: [In Safe Haven] = OFF
End

The switch will be off at the start of the game, so the first time you use the item, you'll be transferred to the safe area and it'll remember where you were when you used it.
@Shaz Not only did that solve my question, but you actually taught me something as well!
After this variables are much, much clearer. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/save-player-location-in-mv-with-events.90088/