#============================================================================== # ★ Bush_Region ver1.0 by USK #------------------------------------------------------------------------------ # ・茂み属性のあるリージョンを設定できます。 #============================================================================== =begin ・16行目から始まるBushRegionの{}の中に  (リージョン番号) => [(茂みの深さ), (茂みの不透明度)],  と記入して使います。  茂みの深さはキャラクターの下から何ピクセル隠れるか、茂みの不透明度は  隠れている部分の不透明度(0〜255)のことです。 =end #============================================================================== # ■ 設定部分 #============================================================================== BushRegion = { 5 => [16, 0],#例 6 => [8, 100],#例 } #============================================================================== # ■ Game_Character #============================================================================== class Game_Character alias :usk_region_bush_depth :bush_depth #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def bush_depth bush_region[0] || usk_region_bush_depth end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def bush_region BushRegion[region_id] || [] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def bush_opacity bush_region[1] || 128 end end #============================================================================== # ■ Sprite_Character #============================================================================== class Sprite_Character alias :usk_region_update_other :update_other #-------------------------------------------------------------------------- # ● その他の更新 #-------------------------------------------------------------------------- def update_other usk_region_update_other self.bush_opacity = @character.bush_opacity end end