Weather effect

● ARCHIVED · READ-ONLY
Started by frederik850 6 posts View original ↗
  1. When you set the weather type to rain I guess it automatically tints the screen by default? Cause I have a day and night and a random climate script and when it's night and it rains at the same time my screen is basically black. Does anyone know where I can change the default weather/tint screen settings?
  2. Its under the dimness function of Spriteset_Weather. Here:

    class Spriteset_Weather #-------------------------------------------------------------------------- # * Get Dimness #-------------------------------------------------------------------------- def dimness (@power * 6).to_i endendand if you're going to return 0 there instead of the usual weather tint, you can do this for it and see a weather without the tint:

    Code:
    class Spriteset_Weather  #--------------------------------------------------------------------------  # * Get Dimness  #--------------------------------------------------------------------------  def dimness    return 0  endend
  3. Thanks! That's very useful. And how can you adjust the tint? Cause that was kinda my plan.
  4. Do you want to change it in game? If so, since it returns the @power multiplied by 6, we can always change that by making a global variable that, inside the game changes your tint.

    class Spriteset_Weather #-------------------------------------------------------------------------- # * Get Dimness #-------------------------------------------------------------------------- def dimness (@power * $game_system.power_adjust).to_i endendclass Game_System attr_accessor :power_adjust alias game_system_power_adjust_initialize initialize def initialize game_system_power_adjust_initialize @power_adjust = 6 end def adjust_weather_tint(power) @power_adjust = power end end if you want to adjust your weather tint in game, install the script above and then on a script call:

    $game_system.adjust_weather_tint(power)for the new tint of the weather. For example:

    Code:
    $game_system.adjust_weather_tint(20)
  5. Thank you so much! That's exactly what I needed.
  6. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.