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
-
wolfador
- Posts: 241
- Joined: Sun Sep 04, 2011 9:59 am
- Location: Pittsburgh, PA
On-Demand Thunderstorm
Last edited by wolfador on Thu Nov 10, 2011 2:05 pm, edited 1 time in total.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
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.
-
wolfador
- Posts: 241
- Joined: Sun Sep 04, 2011 9:59 am
- Location: Pittsburgh, PA
Re: On-Demand Thunderstorm
sweet, you are the man!!
