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 / Text script not functioning correctly

Author
Message
PixelF
12
Years of Service
User Offline
Joined: 30th Oct 2012
Location: United States
Posted: 13th Jul 2013 01:17

It is supposed to display 4 different messages in a row, but what it does is display message 1, then jumps to message 3. After that, nothing.
It is frustrating. Can anyone assist me?

www.pixeleater.me
Register now to become a reasonably intelligent human being!
Anubis
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: Netherlands
Posted: 13th Jul 2013 02:45 Edited at: 13th Jul 2013 02:48
First, check states 40 and 50. first state 50 should be a state 40 i think.



Second, check sound variables. Sound= <space>, see code above

Third, Every Timergreater state line has TWO actions calling a state..

Which state do you want the engine to go to.. 20 or 30?

tip. Use Etimer, not timer.. that way this scripts timer wont interfere with other timers.

EDIT..

Fourth State=0 line has a '.' where a ',' should be.

Grts
Anubis

-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-

[Chipset:X58 CPU:i7.950.64 GPU:HD5970 RAM:12GB DDR3 WIN:7.x64 PRO FPSC:1.20.10]
PixelF
12
Years of Service
User Offline
Joined: 30th Oct 2012
Location: United States
Posted: 14th Jul 2013 23:47
Doesn't seem to make a difference. It still doesn't function correctly.

Anyways, Thanks for the assist!

www.pixeleater.me
Register now to become a reasonably intelligent human being!
Anubis
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: Netherlands
Posted: 15th Jul 2013 01:46
No problem

Post your current script, we can take a look again.

-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-

[Chipset:X58 CPU:i7.950.64 GPU:HD5970 RAM:12GB DDR3 WIN:7.x64 PRO FPSC:1.20.10]
PixelF
12
Years of Service
User Offline
Joined: 30th Oct 2012
Location: United States
Posted: 17th Jul 2013 03:11

Sorry for the late reply. Here it is above.

www.pixeleater.me
Register now to become a reasonably intelligent human being!
Anubis
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: Netherlands
Posted: 17th Jul 2013 21:25


Just cleaned it up a bit. But i really doubt the script.
What if the player walks away when state=20 is active? no rules there..
Do you want the script to start over when that happens? or start with state=30 when you return?
Do you want it to start all over again when it finishes the conversation, or destroy itself? Questions, but no answers for the engine.

Added state=5 to give the engine a 50% break for this script.. this way it only checks 1 line (state=5), not 2 lines (original state=10) until you hit the zone.

Just try and answer the questions for yourself and implement in the script. I would add a variable and 'count upwards' with every state, that way one can walk away mid state=30, return and get state=40, convo continues.
And a plrdistfurther for every state, so peeps can walk away.

Grts,
Anubis

-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-

[Chipset:X58 CPU:i7.950.64 GPU:HD5970 RAM:12GB DDR3 WIN:7.x64 PRO FPSC:1.20.10]
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 21st Jul 2013 19:27 Edited at: 21st Jul 2013 19:29
His edit looks good, did it work for you?

Login to post a reply

Server time is: 2024-11-23 14:25:46
Your offset time is: 2024-11-23 14:25:46