Help me make Teleport in RPG Maker MV, please!

So, I wanted to make a spell that takes you to a town you've already visited, like Zoom from Dragon Quest or Fly from Pokemon. Is there a way to do this with conditional branches, or would I need some plugins?
...Anyone?
@Corygon Don't bump your posts after half an hour. That's just disruptive (and honestly pointless). We allow bumping after 72 hours if no one has responded to your query.

It's doable with Events and Conditional Branches. You just have to be thorough about making sure that the proper variables are set when you visit towns. Here's how I would set it up:
  1. Each time the player enters a town, set a Variable equal to an arbitrary number that you 'assign' (in your head) to that town. For example, Pallet Town is "1", Viridian City is "2", Cerulean City is "3", etc. Make sure each town has a different number assigned. To set the Variable when they walk into town, have one or more invisible "Player Touch" events at the town's entrance that set the Variable ("Control Variables").
  2. Create a Common Event (Trigger: "None") that warps the player to town. You do this by having a Conditional Branch for each town. I'll give you an example below.
  3. Create your Warp spell. Make sure to set when it's usable (usually for this kind of spell you'd choose "Only on Map", but you might want it available "Always"). Set the scope to "None" (or if that doesn't work, try "The User"). Attach the Common Event to this spell by adding it into the spell's Features box.
Example of Common Event:
Play SE: Warping Sound
Conditional Branch: If Variable 55 "Last Town" == 1
..Transfer Player: Pallet Town, whatever X and Y the town entrance is
End Conditional Branch
Cond Branch: If Var 55 "Last Town" == 2
..Transfer Player: Viridian City
End Cond Branch
Cond Branch: If Var 55 "Last Town" == 3
..Transfer Player: Cerulean City
End Cond Branch
Oh, thanks, @Wavelength! Also, I am really sorry about that...
No problem. Don't feel bad about it.

Original thread: https://forums.rpgmakerweb.com/threads/help-me-make-teleport-in-rpg-maker-mv-please.112410/