Save-Point
KWeatherArea XP - 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)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: KWeatherArea XP (/thread-11522.html)



KWeatherArea XP - kyonides - 03-22-2025

KWeatherArea XP

by Kyonides

Introduction

Thinking Did you ever want to set a custom weather effect depending on a given area on the current map?
Now you can do it in RMXP! Grinning

NOTES
  • This scriptlet uses script calls to make that happen. Winking
  • Here an area is synonymous with a rectangle.
  • You can add and remove areas.
  • Removing an active weather area reverts the effects to the last effect you've set via Set Weather Effects event command.
  • If you change the weather in battle, it will revert it to the current area's weather, if any.
  • Please Book read the embedded notes to learn how to use it properly.
Supported Engines

RMXP and HiddenChest! Two Thumbs Up! 


Terms & Conditions

Free for use in ANY game. Gamer 
Please include my nickname in your game credits.
Also mention the forum where you found it. Winking
That's it! Tongue sticking out


RE: KWeatherArea XP - kyonides - 03-23-2025

Script Upgrade!

This unexpected release Happy with a sweat offers you 2 bug fixes and 1 new feature.

Bug Fixes

The scriptlet didn't let you set a weather effect manually at some point because one of Game_Screen's variables was set to a minimum level. Oops! Oops!
Now it's totally possible to set any of the available effects via event commands or script calls.

The script call passed a nested array to the WeatherArea's set_rect method causing the vanilla RMXP engine to crash.
Now the custom class flattens the coordinates array before altering its area variable (a Rect object).

New Feature

If you ever delete the currently active weather area, it will revert the weather to the last weather effect set via event command, if any.


RE: KWeatherArea XP - kyonides - 03-26-2025

Another Script Upgrade!

Version 1.1.0 Has a New Feature!

Once the current battle has finished, the script will revert any changes you might have made to the weather effects in battle to the local area's weather settings, if there's any.


RE: KWeatherArea XP - kyonides - 04-11-2025

Just Another Script Upgrade!

Today version 1.2.0 has finally arrived!

Add a Weather Area on a Different Map!
Code:
$game_map.add_weather_area_on_map(2, 1, 1, area_array)

Remove a Weather Area on Another Map!
Code:
$game_map.remove_weather_area_on_map(10, 1)

Clear the Sky - In Battle Only!
For All Turns or Just for a Couple of them!
Code:
$game_screen.no_weather
$game_screen.no_weather(5)

The last ones might be useful if the skill calls a Common Event that features any of those script calls.