On Tick Command
Posted: Wed Feb 27, 2019 10:47 am
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.
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.