# ============================================================================= # TheoAllen - Hide weather by Tileset id # Version : 1.0 # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # (English documentation) # ============================================================================= ($imported ||= {})[:Theo_HideWeather] = true # ============================================================================= # CHANGE LOGS: # ----------------------------------------------------------------------------- # 2013.06.14 - Finished snippet # ============================================================================= =begin Introduction : This script allow you to hide the weather sprites when player entered map with specified tileset id. For example, tileset ID for indoor by default is 3 (interior) and 4 (dungeon). How to use : Puts this script below material but above main. Edit the little configuration if neccessary. Terms of use : You're free to edit by your own or even use in commercial game. Credit isn't neccessary. But, I'll be glad if you put my name in your credit list. =end # ============================================================================= # Configuration : # ============================================================================= module THEO module MAP WEATHER_DISABLE = [3,4] # <-- Record Tileset ID here. end end # ============================================================================= # Just that ~ # ============================================================================= class Spriteset_Weather alias pre_disable_update update def update pre_disable_update update_visibility end def update_visibility @sprites.each do |spr| spr.visible = !THEO::MAP::WEATHER_DISABLE.any? do |id| $game_map.tileset.id == id end end end end