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 / Problems with plrdisable

Author
Message
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 26th Aug 2010 00:37
I used the following script below to try and make it so that hte player doesn't move for 3 seconds each time the text activates.



But instead it just freezes at the first plrdisable. I tried implementing a fix in my other thread about fpgcrawtext, but it didn't work o-o

[WIP] Paranorma Chapter 1, The Horror at Silent Inn
Level 1 - Suspended
ctm
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 26th Aug 2010 13:29 Edited at: 26th Aug 2010 16:06
That's the third time you are asking the same question which was answered already 2 times

French gui wrote:
Quote: "Try to fix this one yourself: look at the 3rd line: you're constantly reseting your timer and freeze the player... "


ctm wrote:
Quote: "The radio script does not work because in state=2 is the timerstart and the timergreater condition!
Scripts are looping. That means the timer gets started every frame again. So the timer cannot become greater than 3000:

:state=2:timerstart,plrdisable=10000,fpgcrawtext=Did this radio just turn itself on? How?
:state=2,timergreater=3000:state=3"


Again:
It cannot work because you had a endless loop in state=2.
In your new script the endless loop is in state=1.
You are starting (resetting) the timer again and again.
timergreater=3000 will never ever become TRUE:



Change this (your code):
----------------------------------
:state=1:timerstart,plrdisable=3000,fpgcrawtext=You hear piano music close by.
:state=1,timergreater=3000:state=2
----------------------------------

to that:
(text will stay on screen for 3 seconds)
----------------------------------
:state=1:timerstart,plrdisable=3000,state=2

:state=2:fpgcrawtext=You hear piano music close by.
:state=2,timergreater=3000:state=3
----------------------------------

or that:
(text will vanish very fast)
----------------------------------
:state=1:timerstart,plrdisable=3000,fpgcrawtext=You hear piano music close by.,state=2
:state=2,timergreater=3000:state=3
----------------------------------

or in words:
Whenever you start a timer you have to change the condition (state) to avoid a endless loop.

Hope this helps

addendum:
If this still does not work for you then there must be something wrong with your FPSC installation.
The action plrdisable can be found in the addendum for FPSC v.1.17.
That implies that it is a new action and will only work with the new FPSC version.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 19:25:16
Your offset time is: 2024-11-24 19:25:16