Posts: 4,761
Threads: 574
Joined: Dec 2009
03-22-2025, 11:11 PM
(This post was last modified: 04-14-2025, 05:04 AM by kyonides.
Edit Reason: Version 1.2.0
)
KWeatherArea XP
by Kyonides
Introduction
 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!
NOTES- This scriptlet uses script calls to make that happen.

- 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
read the embedded notes to learn how to use it properly.
Supported Engines
RMXP and HiddenChest!
Terms & Conditions
Free for use in ANY game.
Please include my nickname in your game credits.
Also mention the forum where you found it. 
That's it!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,761
Threads: 574
Joined: Dec 2009
03-23-2025, 02:05 AM
(This post was last modified: 03-23-2025, 02:08 AM by kyonides.
Edit Reason: 2nd Bug Fix
)
Script Upgrade!
This unexpected release  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!
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.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,761
Threads: 574
Joined: Dec 2009
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.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 4,761
Threads: 574
Joined: Dec 2009
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.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
|