#============================================================================== # ** ExMap_AutoWeather (MACKIE) #------------------------------------------------------------------------------ # This script allows you to set up maps to have weather effects by default. #============================================================================== # Weather map table. # Format is [Map ID, Type (0: none; 1: rain; 2: storm; 3: snow), Power (1~9), # Time (0~600 frames per 1/6 sec), Wait until completion (0: no; 1: yes)] # Make sure you place the array elements in the correct order. # (Example) Map 10, moderate rain, 1 second, no wait => [10, 1, 5, 60, 0] EXMAP_ATWTR_MAPS = [ ] #------------------------------------------------------------------------------ class Game_Map alias _exmawtr_setup setup unless $@ #-------------------------------------------------------------------------- # * Setup (Definition added) # map_id : map ID #-------------------------------------------------------------------------- def setup(map_id) _exmawtr_setup(map_id) setup_weather end #-------------------------------------------------------------------------- # * Setup Weather #-------------------------------------------------------------------------- def setup_weather @screen.weather(0, 0, 0) for data in EXMAP_ATWTR_MAPS if data[0] == map_id @screen.weather(data[1], data[2], data[3]) @wait_count = data[3] if data[4] == 1 end end end end