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?
On-Demand Thunderstorm
On-Demand Thunderstorm
Last edited by wolfador on Thu Nov 10, 2011 2:05 pm, edited 1 time in total.
Re: On-Demand Thunderstorm
Place this line above setup():
Use one of the menu entries like this:
Add this to the CheckCloud() function:
just above these lines:
Code: Select all
boolean ForceCloud=false;
Code: Select all
void MenuEntry1()
{
ForceCloud=true;
ReefAngel.DisplayedMenu=RETURN_MAIN_MODE;
}
Code: Select all
if (ForceCloud)
{
ForceCloud=false;
cloudchance=1;
cloudduration=10;
lightningchance=1;
cloudstart=NumMins(hour(),minute())+1;
}
Code: Select all
if (cloudchance)
{
//is it time for cloud yet?
Roberto.
Re: On-Demand Thunderstorm
sweet, you are the man!!