Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Fog script problems

Author
Message
Script Junkie
14
Years of Service
User Offline
Joined: 9th Mar 2010
Location:
Posted: 9th Mar 2010 22:58
Hi there, i'm an absolutely beginner, and i'm having troubles with this fpi:
Start

;Working Fog
;Header
desc = Activates Fog for a complete level.
;Triggers
:state=0,always:fog=1,fogred=255,foggreen=255,fogblue=30:state=0

End

I wrote this in the FPI EditPad but it shows the following error:
"there are more than two colons( in selected line please revise"
i tried exchanging the last collon( for a comma(,), it doesn't work.

Thanks in advance

SJ
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 9th Mar 2010 23:41
Try this

One, there can only be two colons in a line
Two, if you use always as a condition, it should only be used by itself, never paired with anything
Three, because you put the always at the beginning, you don't need to set the state back to zero, because always will always return true, so the state is irrelevant.
I would try xplosys' tutorial on scripting on his website and look through the official guide for more scripting tutorials.

Hope This Helps
Script Junkie
14
Years of Service
User Offline
Joined: 9th Mar 2010
Location:
Posted: 10th Mar 2010 15:08
Thanks a lot.
Script Junkie
14
Years of Service
User Offline
Joined: 9th Mar 2010
Location:
Posted: 10th Mar 2010 15:31
It worked. But how do I make it only apear in the zone where the trigger is, instead of the whole level?

Thanks again
SJ

Login to post a reply

Server time is: 2024-11-25 01:56:41
Your offset time is: 2024-11-25 01:56:41