• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

v21.1 [20.1+] Weather System 1.3.9

This resource pertains to version 21.1 of Pokémon Essentials.
Fixed a typo on Encounter Methods. Now the trygger chance should work for all encounter methods that use it.
Added seasonal encounter pools. They aren't registered in the plugin but if you add them on 03 - Weather Encounters\01 - Encounter methods (or anywhere else), they should work.

The encounter structure added by this plugin should be one of the following: TypeWeather, TypeTimeWeather, TypeSeason, TypeTimeSeason, TypeWeatherSeason and TypeTimeWeatherSeason. Be sure to follow this structure when registering the seasonal encounters.

The code hasn't been tested so any report of problems will be appreciated.
Fixed the code for pbInitializeWeather to stop it from creating extra weather zones not defined in the configuration file. With the fix, pbInitializeWeather now resets the weather of all zones (both current and future).

Since the plugin loads old saved weather if it exists when opening the game, it may be a good idea to add that code at the intro so the weather on the zones isn't exactly the same as the last saved game when starting a new game.
Added or improved some explanations on the configuration file. Now it should be easier to understand how to configure some parts (as if the plugin itself wasn't hard enough to configure without explanations).
Fixed the problem that caused weather names to not be translated.

IMPORTANT: this fix needs the WEATHER_NAMES part of the configuration to be changed so I recommend moving your configuration file elsewhere first so you don't lose it.
  • Like
Reactions: E4Artemy
  • Changed the handler code so it stops overwriting the weather on maps that aren't in a zone.
  • Added again the graphics that were missing on the last update.
  • Like
Reactions: E4Artemy
Deleted the def encounter_type that was included in the plugin. It was exactly the same as the def encounter_type that came with Essentials and was unnecessary.
  • Fixed (hopefully) the error where weather with 0 probability is picked as a valid weather for a zone.
  • Updated the link in the metafile.
  • Changed the code so the WeatherSystem variable is added to existing save files.
  • Fixed an error when the minimum and maximum change time for weather is set the same.
The only changes are in 01 - Main Code/01 - Main so there is no need to overwrite the configuration file.

If the plugin doesn't work on existing save files, report it. I'll change it back to require a new game until I figure out what the problem is.
  • Registered weather encounters for surfing, fishing, headbutt and rock smash.
  • Added code to make weather encounters possible for fishing, headbutt and rock smash.
Back
Top