A Drought System?

Hi,

I am making a farming game, and I'd like to make a drought system.

So basically, ten days before the drought, I'd like the player to be alerted that a drought is coming.
Then days later, I would like it not to rain in the game. (I have a common event controlling the weather.)
Ten days after that, I would like it so that the drought ends.

How would I do this?

Thanks in advance?
EwantheGreat
is the drought a season/(happens every year) or random(can or cant happen a year)???
I stumbled across this the other day.

Nik0405's Events | ***NEWEST: Day/Night/Weather-Event V1.5.0***
https://forums.rpgmakerweb.com/inde...-newest-day-night-weather-event-v1-5-0.47250/

It might be worth a look. Takes a while to setup.
if season you can store in a variable the day and every morning an event check if it is the day and then disable any rain that may happen
you can have an elnino/drought timer which on each day lessen 1 point but in using that you should have a negative checker (if it is less than zero) {var = 0}

if random you can use formula like Math.random() using scripts
page1>FlowControl>conditional branch
ex. Math.round(Math.random() * 100) == 2 << 2 which is the probability it would have drought
you can also make the probability a variable so that you can change its % in different season
(for example a drought is most probable in summer)
Math.round(Math.random() * 100) == $game_variables[x] << x which is the number of the variable
is the drought a season/(happens every year) or random(can or cant happen a year)???
It's a period of time. But the player is warned ahead of time
you should have a log of the date using variables
(eg. 0001 for spring 1, 0204 for summer 4)
if it is on that day (eg. CONDITION BRANCH>> variable 1 >> = >> drought day) then the nessesary action {eg. control switch 001 is on}
then in the variable run by the control switch {SHOW TEXT: //text; and all the other things; but be sure to include a day count}
it is better if youll use a plugin on the resource threads, or make your own plugin for your own preferences..

well if not ill probably do this..
first arrange a day (how it works, the lighting and all you want to put in a regular day) its all on your own
be sure to add a day in the day count every end of the day
and check if the day is morethan the lenght of the month so you can change the month

Spoiler
upload_2017-6-2_17-28-2.png

if the day is not ended naturally, or the player desides to sleep the whole day,
you should have an event like this, or it depends...
Spoiler
upload_2017-6-2_17-58-52.png
i dont know how to rewrite save using this... so just find it elsewhere

make a date checker, if it is on a specific day alert something, you can use it in birthdays, festivals and all the other things you want in a specific calendar day...
so if you decide that drought is always on the specific day you should probably put it here
if not Just tell me
Spoiler
upload_2017-6-2_17-29-31.png

next if it alerts,(the drought event) do this
too much to explain but you can probably understand this..
Spoiler
upload_2017-6-2_17-30-17.png

hope this helps.. winkwink** XD
if you need anything to be clarified, just PM. i dont like posting on peoples thread XD
Just a thing, im gonna be working on a plugin about farming for my errand for this month, im searching for a partner in crime, if youre interested just pm me.

details for the plugin:
//runs in 15 different climates according to the latitude of the place to the map
//plants that doesn't grow surprisingly fast unlike the regular games (be realistic, a tomato doesn't grow in just a season)
//plants that doesnt need extra care if planted on the right season. (less watering)
//plant relying on daylight hours, day and night temperatures, and mm of rain received for a day. if this exceeds largely or is not met on a great extent, the plant may die XD

if youre interested, pm!!! xD

Original thread: https://forums.rpgmakerweb.com/threads/a-drought-system.79371/