Teleporting item showing map name

Okay so I made an item which the player can use to save a custom location to teleport to then use it again to teleport back to that point. So far so good everything works but in the teleport options it shows as "1" "2" "3" etc (I set it to that) because I cant figure out how to make the game show the map name. I can make it show the map ID but that isn't much more helpful...

How would I make it show the map name?


Ideally, how would I make the player name the map himself and have the name show in the options?

(Please if you answer be slightly noob friendly, dont just say "use $gameMap.displayName" or whatever, I would like a bit more explaination on how to do this please! Also I tried that and no results though I may have done it wrong...)
$gameMap.displayName()


this is for display name not name


if you changed the name of the map in game it will return to the original name after you open the game again


but if you want you can make variables with name of the map and you run it every time you open the game
Can you show me how you make it with numbers so i can help with naming ?
$gameMap.displayName()


this is for display name not name


if you changed the name of the map in game it will return to the original name after you open the game again


but if you want you can make variables with name of the map and you run it every time you open the game



Thank you for clarifying that, I turned the display name off and used it, works perfectly!
Can you show me how you make it with numbers so i can help with naming ?


I simply put the numbers in the choices since the variables were empty and all showed as 0. I will just set the variables to show numbers until a location is set to them instead I guess?

I use \v[x] to show the variable in the choices and text box.

Also now the teleport doesn't work anymore hmm... worked fine then went nope ._.
Edit: NVM I'm stupid. Moved my variables and set them again but in the wrong order.
How do you get the location? with items?


Before i do anything 


Did you saw this thread? How to make a teleportation device with multiple locations
I did not see this but it is essentially the same with different variable names except I don't teleport to an actor. The item refers to a common event which asks if the player wants to create a new waypoint or teleport.




Edit: I guess teleporting to a different actor would making renaming them much easier with the name input control, could name input be redirected to Map Display name through variables or something?

Edit2: I also have an habit of putting <wordwrap> everywhere....
You can change Actor name with displayName


$gameActors.actor(x).setName($gameMap.displayName());
You can change Actor name with displayName


$gameActors.actor(x).setName($gameMap.displayName());


Thank you. Had to modify the coding a bit and basically created an if branch to check for the actor's name, if it is unchanged it changes the actor's name to the map display name then the name input happens. If the name was changed then the name input happens without changing the actor's name that way it isnt renamed to the map name everytime this is triggered.

On the bright side, I learned some script calls today and actually bothered looking into them myself and didn't get an headache!
For my opinion i liked your old way more than this way


I made something like this but different way


I made key item with name Empty map and i can use it anywhere so it will make new map with description with display name


P.S  on bright side for me in this thread I learned that choices can convert \v[x] like show box

Original thread: https://forums.rpgmakerweb.com/threads/teleporting-item-showing-map-name.60306/