How do I create 'Hub World Teleport' (very complicated)

I want to create a skill (menu only) where you teleport to a specific area, but using the skill within that area would put you back to where you just teleported.
To simplify, a mini-save where it saves your location co-ordinates and whatever but it teleports you to a hub world.
It's really complicated of an idea, and if it could work, please tell me what to do. If it's impossible (I'm pretty sure it is) please tell me and I'll close the thread.

Please, help with this.
You'll need skill requirements (perhaps yanfly's plugin can do the job) to set it only to be menu.
Then have only one effect, call a common event.

Common event will first store a map ID of actor in variable 1. If variable 1 is equal to whatever that world is, transfer player to a location based on variables 2,3,4.
Else store the player location to variables 2,3,4 and transfer him wherever your hub world is. Simple.

Notice that I'm only using a plugin for skill requirements, the rest is just simple variable operation - so it's not really complicated.
Set a variable call it "location ID", when you use a transfer point that takes you to a map that this skill will apply to, along with the event that serves as the transfer point have it also change the variable "location ID" to a specific number. Or if you have too many transfer points to the area in question, just create an event on map that changes "location ID" variable to the desired number.

Create a "teleport" common event in the database, that has a conditional branch tree with each variable amount used transferring the player to a specific location, based on variable "location ID".

Create a skill that is map use only, that calls up the "teleport" common event.
that is not complicated - on the contrary it is extremely easy and doesn't even need a plugin.

You'll need a skill to call a common event, in that common event you use control variable commands (for three variables) to load your current position into variables. Then you compare the map ID you just got if the player is allowed to teleport and if yes, use show choices or other ways to determine where to teleport to before using a transfer command for that.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-hub-world-teleport-very-complicated.81997/