On Tick Command

Post Reply
User avatar
Red Dog-PG-
Squad Member
Squad Member
Posts: 1005
Joined: Thu Jan 10, 2013 1:21 pm

On Tick Command

Post 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.
Last edited by Red Dog-PG- on Thu Feb 28, 2019 9:39 am, edited 1 time in total.
Image

Image

Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
User avatar
Windstalker-PG-
Administrator
Administrator
Posts: 1451
Joined: Sat May 22, 2010 11:04 am

Re: On Tick Command

Post by Windstalker-PG- »

Thanks RD!
Image
Image
When you hear the Wind.. You're already dead
Image
User avatar
Country Joe-PG-
Squad Member
Squad Member
Posts: 2119
Joined: Sun May 30, 2010 12:29 pm
Location: USA

Re: On Tick Command

Post by Country Joe-PG- »

I like it!

Thanks RD
Image
Image
Post Reply