Skill to teleport on map using variables

Hello !
I am trying to make a skill to teleport on the map depending on variables.
In the end, I would like the player to enter how many cases he wants to teleport to. But for now I am trying to make them "quick teleport" 3 cases on the right when they select the skill from the menu.
So I did the stuff in the screen shot for the event which is linked to the skill
1774988962136.png

But when I try it, my character end up in a black space
Before
1774989048455.png

After:
1774989076628.png

Does anyone know why my character ends up in the void ?
Hi there!
Seems to me that you are teleporting the player to a map id equal to your terrain tag id. You use the Get Location Info command to store an ID of a Terrain Tag.

Instead of using Get Location Info event command, use Control Variables > Game Data > Map Id
Store the map id on that variable then use it on the Transfer Player Command.
It works ! Thank you so much !
The black space is map ID 0, normally only seen when you launch an Event Test (right-click any event command and select Test, or select several and do the same). It's a fixed map hard-coded into the engine.

Original thread: https://forums.rpgmakerweb.com/threads/skill-to-teleport-on-map-using-variables.183090/