• 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.

[16.2+] Weather system and Weather encounters.

465
Posts
7
Years
    • Seen Apr 26, 2024
    Version 2!

    Made this script ages ago for my game and its the most standalone of all mine, so felt i'd share.
    I've now updated it to be entirely one script (Excluding weather encounters) with no map events or checks.

    Both weather their encounters work seperate and best together.

    We have the weather system overhaul, creating a system.
    I'm yet to make checks for some things or getting what it currently is from the script.

    Weather system script
    Spoiler:


    Next for the weather encounters, these aren't updated and can easily be simplified into a encounter method.
    this script still works with the other, and should work.

    Weather encounters
    Spoiler:


    They should both work, do leave a reply if thats not the case, or you have issues in general.

    if you do have improvements or something your unsure how to do for edits, i might know so its worth a try.
     
    Last edited:
    14
    Posts
    3
    Years
    • Seen May 23, 2022
    I'm using v18.2 and it's giving this error of etique. that he mentioned up there.


    the error would be that Weather on that line= $PokemonSystem.weather==1


    because this command "weather" does not exist to call the weather, or something like that.

    maybe because the command $PokemonSystem.weather be otherwise.

    soon I tried to put other commands that I thought would work. But, when I left the map for another one the weather effect still continued (I'm using the individual script). Please help me
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    I'm using v18.2 and it's giving this error of etique. that he mentioned up there.


    the error would be that Weather on that line= $PokemonSystem.weather==1


    because this command "weather" does not exist to call the weather, or something like that.

    maybe because the command $PokemonSystem.weather be otherwise.

    soon I tried to put other commands that I thought would work. But, when I left the map for another one the weather effect still continued (I'm using the individual script). Please help me

    Well the script was made for v16/17 and i dont have actual experience in v18. but i see your problem, its actually a mistake by me. in options go to the top or where its "PokemonSystem" add
    "attr_accessor :weather" after battlestyle, then again in "def Initialize", "@weather = 0 # disable weather or not (0=enabled, 1=disabled)" after @battlestyle.

    this was made so you can toggle weather off (either manually or with a setting as weather can lag with followers in v16/17 atleast) that should do it, but might need to open your settings and change one to fix it (as its done in there)

    hopefully that helps, i can try and help if more errors come for v18; plan to rework this script for v17 soon just to make it easier to use/more plug-and-play
     
    14
    Posts
    3
    Years
    • Seen May 23, 2022
    it worked. Now you could explain (or send me a print) how to make it work on the map. I followed your print in the event editor. But I think something is missing. Well, I tested it here now and it continues to rain across the map
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    it worked. Now you could explain (or send me a print) how to make it work on the map. I followed your print in the event editor. But I think something is missing. Well, I tested it here now and it continues to rain across the map

    the event part is rather long winded, show me the event you've tested with in your game and i can go from there, you'll also (if i didnt state) have to have an autorun that detects indoors to turn weather off. nothing major just useful.

    this will be redone in the rework, but i can try and get yours working for the time being.
     
    14
    Posts
    3
    Years
    • Seen May 23, 2022
    Capturar.PNG
    Capturar 2.PNG
    Capturar3.PNG


    here it is. I don't know if that is so.

    Please help


    I know that there is a parallel process. I just left "press key" for the event to activate when I opened the game to test other scripts
     
    Last edited:
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    14
    Posts
    3
    Years
    • Seen May 23, 2022
    oh it's not just raining. Ta working normal, the climates come random all right. The problem is when I go to another map, the weather continues and doesn't stop. So I don't know how to solve this. Make the weather stop when you go to another map,
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    oh it's not just raining. Ta working normal, the climates come random all right. The problem is when I go to another map, the weather continues and doesn't stop. So I don't know how to solve this. Make the weather stop when you go to another map,

    right so either have another of the weather events on that map or have it toggle off like i said with indoors, take the bit that sets it to none in the event (the purple text)
    and have that by itself on the new map as autorun and below setting it to none "erase event" so it doesnt freeze your game/slow it down.
     
    14
    Posts
    3
    Years
    • Seen May 23, 2022
    now everything is working ok. Thank you for your time and your patience. Loved the script, good job
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    Can this script work custom weather

    Yea this script is designed with custom weathers in mind, just make sure you add them correctly as field weathers, then just add them to the listings (make sure the custom weather is mentioned the same amount of times as an official weather)
     
    69
    Posts
    3
    Years
    • Seen May 27, 2021
    I get this error in v18.1 essential

    Script '311' line Weather: NameError occured.

    uninitialized constant PBFieldWeather::Ash
     
    69
    Posts
    3
    Years
    • Seen May 27, 2021
    Yea this script is designed with custom weathers in mind, just make sure you add them correctly as field weathers, then just add them to the listings (make sure the custom weather is mentioned the same amount of times as an official weather)

    When I installed the weather encounter script
    Iget this error
    Script '311' line Weather: NameError occured.

    uninitialized constant PBFieldWeather::Ash

    I i stalled both weather and weather encounter script
     

    YashPokeFan123

    #PokeFan
    283
    Posts
    3
    Years
    • Seen Apr 28, 2023
    When I installed the weather encounter script
    Iget this error
    Script '311' line Weather: NameError occured.

    uninitialized constant PBFieldWeather::Ash

    I i stalled both weather and weather encounter script

    This error will come if you do compiling?.
     
    69
    Posts
    3
    Years
    • Seen May 27, 2021
    Yea this script is designed with custom weathers in mind, just make sure you add them correctly as field weathers, then just add them to the listings (make sure the custom weather is mentioned the same amount of times as an official weather)

    When I installed the weather encounter script
    Iget this error
    Script '311' line Weather: NameError occured.

    uninitialized constant PBFieldWeather::Ash
    I i stalled both weather and weather encounter script
     
    Back
    Top