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[IMNC::VID] = "New Mapname"
- #
- # In the event contents list it should look like this:
- #
- # Script: $game_variables[IMNC::VID] = "New Mapname"
- # Control Switches: [0001:Mapname_Switch] = ON
- # Transfer Player:[001:MAP001] (001,001)
- # Control Switches: [0001:Mapname_Switch] = 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[IMNC::SID] == false
- draw_text(contents.rect, $game_map.display_name, 1)
- else
- draw_text(contents.rect, $game_variables[IMNC::VID], 1)
- end
- end
- end
- end
- class Game_Map
- def display_name
- if $game_switches[IMNC::SID] == false
- @map.display_name
- else
- @map.display_name = $game_variables[IMNC::VID]
- 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/ |