Players renaming Map.ID? Is it possible?

Hello, everyone! Jac here.

Is it possible for players to rename any maps in the game? If so, how do one go about it? If it involve events, I must have read past it. I mean, it wouldn't surprise me if I did. Words are like Ninja. They hide. I mean, I'm totally innocent! Lol

If it isn't possible without scripts, is there a way I can create my own and make it something similar as a small script like

map.id = actor.id

or whatever? I did try to place \N[x] as a Map name and try renaming it that way. Didn't work. Lol. I even thought about adding a script for a specific actor to rename the map. But I'm still new to all of these coding. My biggest issues is the orders in what to place them.
You can't do it with plugin sadly.

Edit:
Spoiler: Ignore this, It's a different engine plugin
I surfed the forum and have stumble some plugin that Ludo_gamer made (I think that is their username).

I believe he didn't post it anywhere but on the forum I stumbled upon (and i don't even remember the link), so here the code.
Spoiler: The plugin, just copy and paste it on text document and save it as .js
JavaScript:
//=============================================================================
//LudoDisplayName.js
//=============================================================================

/*:
* @plugindesc Allows you to change the display name of a map via script events.
* @author Alessio De Santis
*
*
* @help
* Use
* $ndname[MapID-1].displayName = "new map display name"
* in an event script command to change the display name of a map.
* Use
* $ndname[MapID-1].displayName = ""
* to show default display Text.
*
* Change MapID with the Id of the map that you want to change the display name of.
*/


//-----------------------------------------------------------------------------

$ndname = [];

Scene_Title.prototype.create = function() {
    Scene_Base.prototype.create.call(this);
    this.createBackground();
    this.createForeground();
    this.createWindowLayer();
    this.createCommandWindow();

    this.initnd();
};

Scene_Title.prototype.initnd = function() {
    for(i of $dataMapInfos){
        if(i && $ndname.length <= $dataMapInfos.length){
            $ndname.push({
                id : i.id,
                displayName : ""
            })
        }
    }
}

Game_Map.prototype.displayName = function() {
    if($dataMap.displayName && $ndname[$gameMap._mapId-1].displayName != "")
        return $ndname[$gameMap._mapId-1].displayName
    return $dataMap.displayName;
};

After installing the plugin, just use scripcall similar to this:
Code:
var ruinName = "Sincal Dungeon";
$ndname[47-1].displayName = ruinName;
$ndname[48-1].displayName = ruinName;
$ndname[49-1].displayName = ruinName;
$ndname[52-1].displayName = ruinName;

//47-52 is mapID of map name you wanted to change.
//In this, I use variable because my dungeon spanned to multiple maps
some plugin
another case of someone not knowing where they are.
The OP needs a VX Ace script

The map name can be changed, I don't know how to do it easily, but I know that Hime's Map Regions script is used to do just that.
another case of someone not knowing where they are.
The OP needs a VX Ace script

The map name can be changed, I don't know how to do it easily, but I know that Hime's Map Regions script is used to do just that.
Oh sorry about that, It seems i'm not observant enough that i'm on different engine board haha.

will edit my post. thanks for the warning tho.
Here you go:
Firt add this script to your game:

Spoiler: RGSS3
Ruby:
#==============================================================================
# ** Window_MapName_edit by Evil95
#------------------------------------------------------------------------------
#  This window displays the map name.
#==============================================================================
# if Switch 1 is true, Variable 1 is shown, if false normal mapname is shwon
class Window_MapName < Window_Base
  def refresh
    contents.clear
    unless $game_map.display_name.empty?
      draw_background(contents.rect)
      if $game_switches[1] == false #change [1] to the switches id you want to use
        draw_text(contents.rect, $game_map.display_name, 1)
      else
        draw_text(contents.rect, $game_variables[1], 1) #change [1] to the variable id you want to use
      end
    end
  end
end
Then do this:
1. Let the player name a Character called map. This should be a extra char only for mapname in the database.
2. Make a new Event an let the player enter a Name and choose the "map" character.
Now use the following scipt call:
$game_variables[1] = $game_actors[11].name
Change the variable number to the number you set in the script. change the actor id to match with the "map" character.
3. Set the Switch 1 On (true). if you now teleport to the map it should show the new name.
Important: If you transfer to the renamed map the switch must be On. If you tranfer away from the map, set the switch of off (false).
That's it.

PS: Sorry for my bad english. 😀
PPS: I attached a Screenshot.
but I know that Hime's Map Regions
I will check it out! Thank you!

@Warilized Don't worry! The fault is mine! Normally I include "RPG VX Ace" in the title or in the box. I'm sorry. And thank you for trying to help me. 🙂

@Evil95 I tried the script. It works with the Variable but I think I screwed up on the game switches. It doesn't show up on the map. Yes, it has a lot of potential and it seem easy to work around. I tried both true and false but nothing seem to work with renaming. Also, I thought your Language was English until I saw that it was Germany. I couldn't tell the different. You did good! 🙂 And thank you for your help!
Did you use variable 1 and switch 1 or did you find your own variable and switch that you're not already using for something else, use them instead, and modify the script accordingly?

Please show a screenshot of the script, as it exists in YOUR script editor, and of the event where you've added the commands.
@Shaz Alrighty! I didn't delete it. Lol

Spoiler: Spoiler
1593209270123.png

1593209418982.png

1593209930741.png

I even renamed the character as "Map" and another name since it didn't work, "Base". The Actor I'm using is the #2 Actor on the list.

Edit: Another question I was meaning to ask, does the map # need to be the same as the switches # or the other way around? Or does none of that matters?
Sorry for constantly editing the comment above. I had to rename the tileset because of profanity language. I changed it to crap instead of s***. Again, sorry!
Most of it looks okay, but I notice you have a different position in your two draw_text commands, and you weren't meant to change those.

Notice on row 13 of YOUR script, you say to draw the name at position 115 (right at the end of that line), but on row 15, it draws the name at position 1? The original script has 1 at the end of both of those lines. So I'm not sure where your 115 comes from - looks like you might have put the map id in there by mistake. Change that back to 1 and see if it makes a difference.

If it still doesn't work, show us what DOES happen when you trigger that event and go to that map.

I'm guessing by looking at your event and script, that actor 2 is named Map in your database, and you're using variable 1 and switch 306. Just make sure you're not using variable 1 for something else.
Notice on row 13 of YOUR script, you say to draw the name at position 115 (right at the end of that line), but on row 15, it draws the name at position 1? The original script has 1 at the end of both of those lines. So I'm not sure where your 115 comes from - looks like you might have put the map id in there by mistake. Change that back to 1 and see if it makes a difference.
Oop! I took a look and it says "display"! I accidentally read past that! You're right! As soon as you said it, I read upon it immediately and fixed it. Yes, it started working! Thank you! For some reason, I thought I needed to include which map data id in there. (You're also right on that Lol) Again, Shaz! Thank you!

@Evil95 Sorry! The mistake was on me! (I will credit you and your script, don't worry!)
The 1 after $game_map.display_name is the alignment. 😉

Happy RPG Making 😎

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/players-renaming-map-id-is-it-possible.123314/