On-Demand Thunderstorm

Do you have a question on how to do something.
Ask in here.
Post Reply
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

On-Demand Thunderstorm

Post 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?
Last edited by wolfador on Thu Nov 10, 2011 2:05 pm, edited 1 time in total.
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
StuGotz
Posts: 95
Joined: Sat Oct 15, 2011 9:17 am

Re: On-Demand Thunderstorm

Post by StuGotz »

+1 :)
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: On-Demand Thunderstorm

Post by rimai »

Place this line above setup():

Code: Select all

boolean ForceCloud=false;
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?
Roberto.
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

Re: On-Demand Thunderstorm

Post by wolfador »

sweet, you are the man!!
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
Post Reply