class Game_Map def display_name # 10号地图,区域id为2 if @map_id == 10 && $game_player.region_id == 2 "新的名字" elsif @map_id == 10 && $game_player.region_id == 3 "区域为3的名字" else @map.display_name end end end
class Game_Map
def display_name
# 10号地图,区域id为2
if @map_id == 10 && $game_player.region_id == 2
"新的名字"
elsif @map_id == 10 && $game_player.region_id == 3
"区域为3的名字"
else
@map.display_name
end
end
end
我没测试,出错了不要打我 |