
#Begin
_a=""
_msg=""
_cnt=step-1
_reports=1
_wait=step
_dialog=107

#Loop
? _cnt>=3 : _cnt=0
_msg=_msg+format ["#%1: ",_reports]

_ar1=[ocl1,ocl2,ocl3]
_ar2=[rl1,rl2,rl3]
_ar3=[fl1,fl2,fl3]

? _ar1 select _cnt < 1 : _a=localize "OVERCAST_100"
? _ar1 select _cnt < 0.8 : _a=localize "OVERCAST_080"
? _ar1 select _cnt < 0.6 : _a=localize "OVERCAST_060"
? _ar1 select _cnt < 0.4 : _a=localize "OVERCAST_040"
? _ar1 select _cnt < 0.2 : _a=localize "OVERCAST_020"


_msg=_msg+_a

? _ar1 select _cnt < 0.7 : goto "skipRain"

? _ar2 select _cnt < 1 : _a=localize "RAIN_100"
? _ar2 select _cnt < 0.8 : _a=localize "RAIN_080"
? _ar2 select _cnt < 0.6 : _a=localize "RAIN_060"
? _ar2 select _cnt < 0.4 : _a=localize "RAIN_040"
? _ar2 select _cnt < 0.2 : _a=localize "RAIN_020"

_msg=_msg+_a

#skipRain

? _ar3 select _cnt < 1 : _a=localize "FOG_100"
? _ar3 select _cnt < 0.75 : _a=localize "FOG_075"
? _ar3 select _cnt < 0.5 : _a=localize "FOG_050"
? _ar3 select _cnt < 0.25 : _a=localize "FOG_025"

_msg=_msg+_a+"\n\n"
? _reports<3 : _cnt=_cnt+1; _reports=_reports+1; _dialog=_dialog+1; goto "Loop"
ctrlSetText [107, _msg]

@step!=_wait || !dialog || !alive player
? !dialog || !alive player: exit
~1
goto "Begin"
