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 / Some help for a newbie

Author
Message
Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 30th May 2009 23:47 Edited at: 31st May 2009 01:43
Hello. I started to use the program yesterday, and I am addicted! I might buy it! -I am using the trial version

But now, I'm having some troubles with a script that I created.

maybe you can help me:
*I would like to find a key, then get near a guy and give him the key and then I can finish the level. Not worried with the text right now, just with the variables and why I can't go to state 2... any tips?


*EDITED:

I found out a way to do it... but it's not yet running as I would like.
I need to "speak" twice with the identity, to make the variables change their numbers! =/

;Testing how to use waypoints

desc = walk_test_key



:waypointstate=0:waypointstart,animate=55
:waypointstate=3:waypointnext,animate=55
:waypointstate=4:waypointrandom,animate=55
:waypointstate=5:waypointreverse,animate=55



:state=0:hudreset,hudx=17,hudy=90,hudimagefine=gamecore\captions\thought.png,hudname=player,hudhide=1,hudmake=display
:state=0:globalvar=1
:state=0,varequal=1:localvar=1,setvar=1
:state=0:state=1

:state=1,plrdistwithin=60:localvar=1
:state=1,plrdistwithin=60,varequal=1:globalvar=1,setvar=2,sound=audiobank\caption_talks\bom_dia.wav
:state=1,plrdistwithin=60:rotatetoplr,waypointstop,animate=51
:state=1,plrdistwithin=60:state=4



:state=4,plrdistfurther=60: waypointstart,state=0

;End of Script
Viriatos
15
Years of Service
User Offline
Joined: 30th May 2009
Location:
Posted: 31st May 2009 01:42
Well, I found out a way to do it... it's working now, but it's not yet as good as it should be:



;Testing how to use waypoints

desc = walk_test_key

:waypointstate=0:waypointstart,animate=55
:waypointstate=3:waypointnext,animate=55
:waypointstate=4:waypointrandom,animate=55
:waypointstate=5:waypointreverse,animate=55


:state=0:hudreset,hudx=17,hudy=90,hudimagefine=gamecore\captions\thought.png,hudname=player,hudhide=1,hudmake=display
:state=0:globalvar=1
:state=0,varequal=1:localvar=1,setvar=1
:state=0:state=1

:state=1,plrdistwithin=60:localvar=1
:state=1,plrdistwithin=60,varequal=1:globalvar=1,setvar=2,sound=audiobank\caption_talks\bom_dia.wav
:state=1,plrdistwithin=60:rotatetoplr,waypointstop,animate=51
:state=1,plrdistwithin=60:state=4



:state=4,plrdistfurther=60: waypointstart,state=0

;End of Script


I need to "speak" to him twice, to the variables assume their number... why?
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 31st May 2009 02:00
Unhelpful Titles

Please do not simply write "Noob Question", "I am a newb", "One Noobie Question", "A question", "Please help", "This isn't working" or anything similar as the title of your post. We have a search facility, and meaningless titles do not help others find answers to their questions. It will also help you to get quicker responses if people have an idea of your thread content.

Login to post a reply

Server time is: 2024-11-25 01:32:56
Your offset time is: 2024-11-25 01:32:56