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 / I've got a walker but not a talker

Author
Message
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 5th Mar 2009 00:40 Edited at: 5th Mar 2009 01:24
I'm attempting to create a character script who will follow a waypoint, until the player is seen, then stop and speak.
The problem I am having is that character doesn't see me nor does it play the sound file..
Any help or suggestions?



BTW... this is my first attempt at scripting.

Gary
X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 5th Mar 2009 01:11
you need to change the commas to colons after state, when you have finished checking the condition a colon seperates it from the action eg

:state=1:waypointstop,rotatetoplr

as opposed to

:state=1,waypointstop,rotatetoplr

you see?

- Why is everyone on here so rude? -
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 5th Mar 2009 18:09
OOOhhh !! OK! Thank you very much, I knew it was something simple that I was overlooking..

Also, I was clowning around with scripts, and I would like for people's input on this one.
It's not very functional, but I laughed and laughed... Just create a set of waypoints apply the script to the Cleopatra character and watch her go crazy when you approach her..She even jumps in the air and rides and imaginary bicycle !!!


Gary
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 5th Mar 2009 21:31 Edited at: 6th Mar 2009 01:35
Ok.. I've made some changes but the character still ignores me. Any assistance would be greatly appreciated.



Gary
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 5th Mar 2009 22:56
ok... now she just stands there and jumps up and down... lol


Gary
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 5th Mar 2009 22:58
Even this doesn't work..



Gary
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 6th Mar 2009 06:24



X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 6th Mar 2009 17:08
hockeykid your doing it now!

check state 3

should be


:state=3:plrdistfurther=120:waypointstart,state=0

try it now

- Why is everyone on here so rude? -
X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 6th Mar 2009 17:09
btw the crazy cleo one is a riot!

- Why is everyone on here so rude? -
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 6th Mar 2009 23:16
I'm not sure what I am doing wrong, but I copied and pasted the code into FPI Editpad and saved it, then applied it to Cleo... now she just stands there until I press the exit key from testing, then she spreads her legs and you hear the thunder...I think she has gas

Gary
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 6th Mar 2009 23:31
Thanks for the COLON-oscopy lesson, but now she only glides along her waypoint and doesn't even walk! And she still ignores me...

I tried to modify the code to this to get her walking again, but it doesn't seem to work..


I really appreciate you all taking the time for this Old beginner.

Gary
OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 7th Mar 2009 00:59

Woo-Hoo !!! Yippey!! Horray!!! Thanks to your help, I finally figured it out.

Cleo will now walk along her waypoints until you get next to her.
She will then stop and face you and tell you what she has to say.
Then when you move on, she will continue on her merry way !!!

Here is the code for anyone who may need it..




Thank you very much !!!!

BTW... Use Photoshop to cut a piece of cloth and place over Cleo's mouth like a veil and you won't have to worry about mouth movements.

Thanks again everyone !!

Gary
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Mar 2009 01:30
Quote: "hockeykid your doing it now!

check state 3

should be


:state=3:plrdistfurther=120:waypointstart,state=0"


That still wouldn't work.

You have three colons on that line, check it again.


The one and only,


OldGameMaker
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location: Hiding in the Shadows of My Mind
Posted: 7th Mar 2009 03:14
As I stated in my previous post... everything is working now.... except everytime I bump into her she won't shut up!!! HaHaHa

I need to figure out how to only allow her to speak 1 time then shut up. Any suggestions will be appreciated..

Again here is the code.



Gary
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 7th Mar 2009 07:10
Quote: "Quote: "hockeykid your doing it now!

check state 3

should be


:state=3:plrdistfurther=120:waypointstart,state=0"

That still wouldn't work.

You have three colons on that line, check it again.


The one and only,


"


Oops i wrote that late last night after a long day. I didn't test or proof read it. my bad


Login to post a reply

Server time is: 2024-11-24 21:46:41
Your offset time is: 2024-11-24 21:46:41