Save-Point
BattleWeather ACE - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: BattleWeather ACE (/thread-8831.html)



BattleWeather ACE - kyonides - 10-23-2023

BattleWeather ACE

by Kyonides

Introduction

VX Ace doesn't seem to offer you a way to make it rain or snow by default. This scriptlet arrives to solve your weather issues.

The Script

Code:
# * BattleWeather ACE * #
# - A Plug & Play Script - #
#  Scripter : Kyonides Arkanthes
#  2023-10-23

class Spriteset_Battle
  alias :battle_weather_sprtst_bttl_disp :dispose
  def initialize
    create_viewports
    create_battleback1
    create_battleback2
    create_enemies
    create_actors
    create_weather
    create_pictures
    create_timer
    update
  end

  def create_weather
    @weather = Spriteset_Weather.new(@viewport2)
  end

  def dispose
    dispose_weather
    battle_weather_sprtst_bttl_disp
  end

  def dispose_weather
    @weather.dispose
  end

  def update
    update_battleback1
    update_battleback2
    update_enemies
    update_actors
    update_weather
    update_pictures
    update_timer
    update_viewports
  end

  def update_weather
    @weather.type = $game_map.screen.weather_type
    @weather.power = $game_map.screen.weather_power
    @weather.ox = $game_map.display_x * 32
    @weather.oy = $game_map.display_y * 32
    @weather.update
  end
end

Terms & Conditions

Free for ANY kind of game. Gamer
That's it! Tongue sticking out