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 is not working how it should!

Author
Message
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 28th May 2013 00:41 Edited at: 10th Jun 2013 20:57


The player is supposed to be forced to move backwards when in the zone but after numerous tests, the player moves forward! Is it just me? I'm using 1.2 beta 16 and running Windows 7 Home Premium.

Don't waste your life
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 5th Jun 2013 23:44
Any help?

Don't waste your life
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 6th Jun 2013 17:17 Edited at: 6th Jun 2013 21:23
Hi A dude
There's a lot of disabling going on in the script. I'm pretty sure it's the way the script is setup. First I tried just the "plrdisable"
and it works fine. Then I added the "plrforcemove" to it
and I started having problems.
This one kind of worked

Will give it more thought. Also I do remember there are afew timer
issues that have been resolved for the last update yet to be released. I'm using 1.20.17a

Edit: I just noticed one thing in your script. You have "walkkeys=" I believe it's "walkkey="
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 10th Jun 2013 21:21
Quote: "Edit: I just noticed one thing in your script. You have "walkkeys=" I believe it's "walkkey=""


According to FPI EditPad, it's "walkkeys=".

Don't waste your life
Corno_1
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 10th Jun 2013 21:49
Quote: "According to FPI EditPad, it's "walkkeys="."

It is definatly walkkeys!! I looked in the source code.

http://cornofpsc.webs.com/
I know that Corno has a lot of translations. If you find one sent me a mail
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 10th Jun 2013 22:00
It seems like the walkkeys action is messing my script up. Without the walkkeys action the script works great. Except for the fact that the player can still move forward in the zone.

Don't waste your life
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 10th Jun 2013 22:06
Hi guys, according to syntax list 5.1 it's
Quote: "3.17.2.20 WALKKEY=X
Description: This defines whether the walk keys are used.
Range: X = 0 – Walk keys are not used.
X = 1 – Walk keys are used.
Example: :state=1:walkkey=0"

Lets find out which one is correct?
Corno_1
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 10th Jun 2013 22:20
If you not trust me, trust the source code :
https://fpscreatorengine.googlecode.com/svn-history/r768/trunk/FPSC-Game.DBA
The script syntax is wrong in this case.

@dude
hmm maybe I find some time to look into your script. But ncmako should also find something. He is a good scripter


Corno_1

http://cornofpsc.webs.com/
I know that Corno has a lot of translations. If you find one sent me a mail
BlackFox
FPSC Master
15
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 10th Jun 2013 22:37 Edited at: 10th Jun 2013 22:37
The script syntax has an incorrect entry. It is in fact "walkkeys=x".

It may be a case of the command not doing as you might intend it to do. There are some commands that work properly only if they are before other commands; some work on their own. I would try to alter the script at the "state=2" line to be as follows:



No guarantees this is the solution, since I do not have the command myself. However, if you remove the "walkkeys", does the player actually move backward? If not, then it is the "plrforcemove" command that is the issue. If the player does move backward, then it is the "walkkeys" command causing the issue.


There's no problem that can't be solved without applying a little scripting.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 11th Jun 2013 07:29
OK, so it is definitely "walkkeys="
I played with this afew days ago, and as soon as I started to add "plrforcemove" I had problems running the script.
Would it help if you gave each action it's own state?
Or maybe a slight delay with an "etimer" as in previous
postings where scripts needed a delay/timer? I'll play with this a bit.
Corno_1
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 11th Jun 2013 17:28
Quote: "However, if you remove the "walkkeys", does the player actually move backward?"

Yes it does.
Quote: "If the player does move backward, then it is the "walkkeys" command causing the issue."

It looks like this. I test it again and again, but it seems so...

Corno_1

http://cornofpsc.webs.com/
I know that Corno has a lot of translations. If you find one sent me a mail
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 13th Jun 2013 21:48 Edited at: 13th Jun 2013 21:52
I thought this might work but it didn't.

The other script:


Don't waste your life

Login to post a reply

Server time is: 2024-03-28 10:30:24
Your offset time is: 2024-03-28 10:30:24