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 / Help with script

Author
Message
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 22nd Feb 2012 19:04
Hey all
i made a script for my new game it works almost perfect but
i'm not sure hhow to get rid of the text after i have the weapon see pic attached.
the script i am using is here

please note that the first bit is because i have been told that the fpsc engine doesn't like to have actions on the first line.
anyways,
please help i need this and thank you in advance

''Make sure your hands are clean before you point the finger''

Attachments

Login to view attachments
Pvt_Classified
12
Years of Service
User Offline
Joined: 19th Jan 2012
Location: How should I know?
Posted: 22nd Feb 2012 21:54
Have you checked out the default scripts for weapons? It's probably somewhere in there.

Pvt_Classified at http://assembledpirateswithblowtorches.weebly.com/
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 22nd Feb 2012 22:08
has nothing to do with the weapon as the text displayed is the text i chose to display but i'm not sure how to remove the text after the plr has already seen it

''Make sure your hands are clean before you point the finger''
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Feb 2012 22:12 Edited at: 22nd Feb 2012 22:39
fpgcrawtextoff

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 22nd Feb 2012 22:38
thank you soo much i never really saw that before on fpieditpad thanks alot.

''Make sure your hands are clean before you point the finger''
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Feb 2012 22:39 Edited at: 24th Feb 2012 16:33
No problem,

I like using states too.

Try this
for an example.

You can see though that the text removes itself once the player gets out of distance.
I haven't played with the FPGCRAWTEXT much, but it seems to be really cool.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 22nd Feb 2012 22:51
Funny how some forget that command "fpgcrawtextoff", but it is quite an effective set of commands.


Twitter: @NFoxMedia
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 23rd Feb 2012 02:42
Quote: "Funny how some forget that command "fpgcrawtextoff", but it is quite an effective set of commands."


It worked for me

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 23rd Feb 2012 08:43 Edited at: 23rd Feb 2012 16:53
Quote: "No problem,

I like using states too."

i don't really understand states could you explain please?

EDIT:
i now need help with my sound script for a radio i need in my game i carn't get the sound to play look at the script and help me please


''Make sure your hands are clean before you point the finger''
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 23rd Feb 2012 17:14
I now also need help with this script

it is supposed to show a peice of text and when thats over and the player presses enter again it displays another peice of text but it's not working ATM please help.

''Make sure your hands are clean before you point the finger''
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Feb 2012 16:31 Edited at: 24th Feb 2012 16:33
Quote: " don't really understand states could you explain please?"

The manual and community guide to FPSC explain it better than I can.
They are both in the FPSC Docs folder, so take a look there for more info.

Quote: "I now also need help with this script"

Give the Manual & Guide a read, and you can probably sort it out in no time.

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 24th Feb 2012 16:53
i have but i can still not complete my script it just won't work.
i know that the hold enter to talk still shows up for about a quarter of a second and if i randomly hold enter it displays the text but i want both to work

''Make sure your hands are clean before you point the finger''
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 24th Feb 2012 17:18 Edited at: 24th Feb 2012 17:18
this should help you to figure it out (3 below this thread, dont you guys read through others themes?^^):

http://forum.thegamecreators.com/?m=forum_view&t=194513&b=23&p=0

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 24th Feb 2012 18:36
ok i still son't see whats wrong with mine though.
Wow i'm really bad at this script lol

''Make sure your hands are clean before you point the finger''
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th Feb 2012 19:05
With a quick glance, I can spot issues:



Using the above snippet of your script, take a look at your ":state=2" lines. You have one waiting for the timer to reach 6 seconds, then going to state 2, and I doubt it is even reaching the second ":state=2" line to get to ":state=3".

Second, look at this line as an example:



The syntax is incorrect. It should be something like this:



You have this in a few of the lines. Remember, the script format should be in the following layout:

:STATE:CONDITION(s):ACTION(s)

example- :state=1,plrdistwithin=50:activateifused=1,state=2

or

:CONDITION(s):ACTION(s)

example- :always:dimvar=$PL 2


Twitter: @NFoxMedia
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 24th Feb 2012 19:14
ok i'll sort them out

''Make sure your hands are clean before you point the finger''

Login to post a reply

Server time is: 2024-11-24 01:54:04
Your offset time is: 2024-11-24 01:54:04