module NoShow { 地图ID => [ 不显示区域ID ] } NO_SHOW_MAP = { 1 => [ 1 ] } end class Scene_Map < Scene_Base alias _start start def start @map_window = Window_Map.new unless NoShow::NO_SHOW_MAP [$game_map.map_id].inlcude?($game_player.area_id) _start end alias _terminate terminate def terminate @map_window.dispose if @map_window _terminate end alias _update update def update @map_window.refresh if @map_window _update end end
module NoShow
{ 地图ID => [ 不显示区域ID ] }
NO_SHOW_MAP = { 1 => [ 1 ] }
end
class Scene_Map < Scene_Base
alias _start start
def start
@map_window = Window_Map.new unless NoShow::NO_SHOW_MAP [$game_map.map_id].inlcude?($game_player.area_id)
_start
end
alias _terminate terminate
def terminate
@map_window.dispose if @map_window
_terminate
end
alias _update update
def update
@map_window.refresh if @map_window
_update
end
end
无法测试, 出错的话, 自行修改即可. |