Page 1 of 1
On-Demand Thunderstorm
Posted: Thu Nov 10, 2011 1:23 pm
by wolfador
So what could I add to my custom menu to have it create an "on-demand" thunderstorm?
I guess we could recreate the CloudCheck and force a storm that way but is there another way?
Re: On-Demand Thunderstorm
Posted: Thu Nov 10, 2011 2:01 pm
by StuGotz
+1

Re: On-Demand Thunderstorm
Posted: Thu Nov 10, 2011 4:55 pm
by rimai
Place this line above setup():
Use one of the menu entries like this:
Code: Select all
void MenuEntry1()
{
ForceCloud=true;
ReefAngel.DisplayedMenu=RETURN_MAIN_MODE;
}
Add this to the CheckCloud() function:
Code: Select all
if (ForceCloud)
{
ForceCloud=false;
cloudchance=1;
cloudduration=10;
lightningchance=1;
cloudstart=NumMins(hour(),minute())+1;
}
just above these lines:
Code: Select all
if (cloudchance)
{
//is it time for cloud yet?
Re: On-Demand Thunderstorm
Posted: Thu Nov 10, 2011 5:42 pm
by wolfador
sweet, you are the man!!