• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

New Season + Weather (Add-on)

4
Posts
6
Years
    • Age 20
    • Seen Aug 14, 2023
    Would this also have the ability to change the map/tileset depending on the season?
     
    465
    Posts
    7
    Years
    • Age 24
    • Seen Apr 26, 2024
    Tried getting your script to work (not sure if its just for 17/17.2 so might be why) but it keeps crashing due to something about "opacity" in the day/season check script, im guessing the "def opacity" one.

    ---------------------------
    Pokemon: Sacred Johto
    ---------------------------
    Exception: NoMethodError

    Message: undefined method `opacity' for nil:NilClass

    Day/Season Checker:209:in `update'

    Passability debug:275:in `cng_dayseason_map_main'

    Passability debug:263:in `loop'

    Passability debug:296:in `cng_dayseason_map_main'

    Day/Season Checker:192:in `main'

    Main:74:in `mainFunctionDebug'

    Main:52:in `mainFunction'

    Main:52:in `pbCriticalCode'

    Main:52:in `mainFunction'

    Main:84
     

    Blake7

    To Ignite all people within our nation
    49
    Posts
    7
    Years
    • Age 27
    • Seen Nov 30, 2018
    Is script compatible with player flying, teleporting out of a map so to close the weather effects?
     
    295
    Posts
    5
    Years
    • Age 28
    • Seen Aug 15, 2022
    Any idea on how to do that? I want to use this script, but when I press, 'New Game', the season still pops up in front of the professor.

    Yes!

    2 ideas:
    Spoiler:


    Spoiler:



    That's all.
     
    Last edited:
    465
    Posts
    7
    Years
    • Age 24
    • Seen Apr 26, 2024
    Finally got the script to work (no idea why it wasn't last time)

    However everytime i go into a battle i get an error;

    Exception: NoMethodError
    Message: undefined method `z' for nil:NilClass
    EliteBattle_Animations:1441:in `initialize'
    EliteBattle_Scene:234:in `new'
    EliteBattle_Scene:234:in `pbStartBattle'
    EliteBattle_Battle:67:in `pbStartBattleCore'
    PokeBattle_Battle:2583:in `pbStartBattle'
    PField_Field:952:in `pbWildBattle_ebs'
    PField_Field:951:in `pbSceneStandby'
    PField_Field:953:in `pbWildBattle_ebs'
    PField_Field:950:in `pbBattleAnimation'
    PField_Field:950:in `pbWildBattle_ebs'
     
    295
    Posts
    5
    Years
    • Age 28
    • Seen Aug 15, 2022
    Finally got the script to work (no idea why it wasn't last time)

    However everytime i go into a battle i get an error;

    Exception: NoMethodError
    Message: undefined method `z' for nil:NilClass
    EliteBattle_Animations:1441:in `initialize'
    EliteBattle_Scene:234:in `new'
    EliteBattle_Scene:234:in `pbStartBattle'
    EliteBattle_Battle:67:in `pbStartBattleCore'
    PokeBattle_Battle:2583:in `pbStartBattle'
    PField_Field:952:in `pbWildBattle_ebs'
    PField_Field:951:in `pbSceneStandby'
    PField_Field:953:in `pbWildBattle_ebs'
    PField_Field:950:in `pbBattleAnimation'
    PField_Field:950:in `pbWildBattle_ebs'

    Maybe, It's not compatible with EBS.
     
    295
    Posts
    5
    Years
    • Age 28
    • Seen Aug 15, 2022
    mine too, if anyone knows how to fix let me know

    Yes!

    2 ideas:
    Spoiler:


    Spoiler:



    That's all.

    ???
     

    Juno and Ice

    Developer of Pokémon Floral Tempus
    150
    Posts
    5
    Years
    • Age 25
    • Seen Apr 30, 2024
    Probably a necro post, but does anyone know how to get this working with EBS? I've been looking for a while, but I don't know how to call the animation on EBS.
     
    62
    Posts
    6
    Years
    • Age 118
    • Seen Aug 11, 2022
    Probably a necro post, but does anyone know how to get this working with EBS? I've been looking for a while, but I don't know how to call the animation on EBS.

    Do you look in 'def getWeatherAnim(weather)' ?

    And add this at the end of your Weather script or place your script on top of the EBS scripts.

    #-------------------------------------------------------------------------------
    # Spriteset_Map
    #-------------------------------------------------------------------------------
    class Spriteset_Map

    alias maws_weather_variation_upd update
    def update
    if $game_screen.variation_update
    @weather.dispose if @weather != nil
    @weather = RPG::Weather.new(@@viewport1)
    $game_screen.variation_update = false
    end
    maws_weather_variation_upd
    end
    end

    module RPG
    class Weather
    alias initialize_ebs initialize unless self.method_defined?(:initialize_ebs)
    alias dispose_ebs dispose unless self.method_defined?(:dispose_ebs)
    end
    class BattleWeather < Weather
    attr_accessor :visible

    def initialize(viewport = nil)
    @disposed = false
    @visible = true
    initialize_ebs(viewport)
    @viewport.z = @origviewport.z
    end

    def dispose
    dispose_ebs
    @disposed = true
    end

    def disposed?
    return @disposed
    end
    def color
    return @viewport.color
    end
    def color=(val)
    @viewport.color=val
    end
    end
    end

    This should make the animation of the weather visible during battle.
     

    Juno and Ice

    Developer of Pokémon Floral Tempus
    150
    Posts
    5
    Years
    • Age 25
    • Seen Apr 30, 2024
    Do you look in 'def getWeatherAnim(weather)' ?

    I looked but I'm not really understanding where the animations are getting called from. Also, I put the script you had at the end of the weather script from the OP and I'm getting this error.
    unknown.png
     
    62
    Posts
    6
    Years
    • Age 118
    • Seen Aug 11, 2022
    Do you look in 'def getWeatherAnim(weather)' ?

    I looked but I'm not really understanding where the animations are getting called from. Also, I put the script you had at the end of the weather script from the OP and I'm getting this error.
    unknown.png

    Yes, the variation_update is missing.

    I forgot this just above the previous one :

    #-------------------------------------------------------------------------------
    # Game_Screen
    #-------------------------------------------------------------------------------
    class Game_Screen

    attr_accessor :weather_variation
    attr_accessor :variation_update

    alias maws_weather_color_init initialize
    def initialize
    maws_weather_color_init
    @weather_variation = 0
    @variation_update = false
    end

    def weather(type, power, duration, variation=0)
    @variation_update = true if variation != @weather_variation
    @weather_variation = variation
    @weather_type_target = type
    @weather_duration = duration
    if @weather_type_target != 0
    @weather_type = @weather_type_target
    end
    @weather_max_target = @weather_type_target == 0 ? 0.0 : (power + 1) * 4.0
    if @weather_duration == 0
    @weather_type = @weather_type_target
    @weather_max = @weather_max_target
    end
    end
    end
     

    Juno and Ice

    Developer of Pokémon Floral Tempus
    150
    Posts
    5
    Years
    • Age 25
    • Seen Apr 30, 2024
    Yes, the variation_update is missing.

    I forgot this just above the previous one :

    sorry to keep bothering you, but I'm getting another error when entering battle.
    unknown.png


    One small thing to note is that if I comment out the line with viewport.z the animation works in battle, but when the battle ends i get another error about 'color' being undefined.
    unknown.png
     
    Back
    Top