module IMP_Picture_Erase # When this switch is on, all pictures will be erased when the # map is changed SWITCH_ID = 3 end class Game_Map alias imp_erase_pics setup unless $@ def setup(*args) imp_erase_pics(*args) if $game_switches[IMP_Picture_Erase::SWITCH_ID] screen.pictures.each { |pic| pic.erase } end end end