Page 1 of 1

On Tick Command

Posted: Wed Feb 27, 2019 10:47 am
by Red Dog-PG-
Here is a weather script using the On Tick Command. This script starts the rain and then it ends

if ontick(180) then
skyspeed(100)
farflash
text("Looks like a warm front is moving in")
text("Better grab your rain gear")
rain(100,20)
overcast(100,30)
set(v4,1)
endif

if ontick(360) then
text("The storm is finally passing")
skyspeed(25)
rain(0,40)
overcast(0,40)
set(V4,2)
endif

if eq(v4,1) and random(30) then
farflash
flash
endif

Here's the breakdown:
3 minutes into the game the sky starts moving at its maximum speed, the rain reaches full strength in 20 seconds, and the overcast reaches full strength in 30 seconds. Variable 4 is set and randomly for 30 times, there are flashes and far flashes.

6 minutes into the game the sky speed slows down to 25% and the rain and overcast comes to an end in 40 seconds.

Re: On Tick Command

Posted: Wed Feb 27, 2019 1:38 pm
by Windstalker-PG-
Thanks RD!

Re: On Tick Command

Posted: Fri Mar 01, 2019 9:51 pm
by Country Joe-PG-
I like it!

Thanks RD