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 / Script Problem

Author
Message
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 22nd Feb 2008 17:48
I just started learning the state script in FPSC but I've got a problem (and the code looks alright to me). In this script, I want the player to walk into a zone, lose 10 health then 5 seconds later loses another 10 health. Here is what I have so far.



What is the problem?

Marc
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 22nd Feb 2008 17:58 Edited at: 22nd Feb 2008 18:01

That is what you have so far, but here's what I found.
In line 2, the timer will always be greater after 5 seconds has elapsed. You also have 3 colons in the top line, and plrwithinzone isn't a action. Here's the fixed code.


That should fix it, I'll go test it now.
(Edit) Fixed a bit of it, going to test again.


Image made by the overworked Biggadd.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 22nd Feb 2008 18:01
Thanks so much, it works

Marc
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 22nd Feb 2008 18:02 Edited at: 22nd Feb 2008 18:03
My last edit should have fixed a bit where if the player steps out of the zone, he shouldn't get hurt after the timer started.


Image made by the overworked Biggadd.

Login to post a reply

Server time is: 2024-11-28 00:15:42
Your offset time is: 2024-11-28 00:15:42