じ☆ve冰风 发表于 2026-8-2 14:17:42

Ingame Mapname Changer

This script will let you change the Mapname directly on-the-fly.
If you use it, please add "Evil95" to the credits. Thank you.


Spoiler: Version 1.2                Ruby:       
#==============================================================================
# Ingame MapName Changer
# -----------------------------------------------------------------------------
# Version 1.2 (30.05.2021)
# Autor: Evil95
#==============================================================================
# IMPORTANT:
# It's compatible with Yanflys Ace Save Engine.
# -----------------------------------------------------------------------------
#
# HOW TO:
# Right before a Teleport-Call insert a script with the following text:
# $game_variables = "New Mapname"
#
# In the event contents list it should look like this:
#
# Script: $game_variables = "New Mapname"
# Control Switches: = ON
# Transfer Player: (001,001)
# Control Switches: = OFF
#
#==============================================================================
module IMNC
# Switch ID to turn the new Mapname on and off
SID = 170
# Variable ID to store the new name
VID = 93
end

class Window_MapName < Window_Base
def refresh
    contents.clear
    unless $game_map.display_name.empty?
      draw_background(contents.rect)
      if $game_switches == false
      draw_text(contents.rect, $game_map.display_name, 1)
      else
      draw_text(contents.rect, $game_variables, 1)
      end
    end
end
end

class Game_Map
def display_name
    if $game_switches == false
      @map.display_name
    else
      @map.display_name = $game_variables
    end
end
end


Outdated Demo Attached.

EDIT: It's now compatible with Yanfly's Save Engine!


本贴来自国际rpgmaker官方论坛作者:Evil95处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/ingame-mapname-changer.123394/
页: [1]
查看完整版本: Ingame Mapname Changer