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 / Key press changes script?

Author
Message
Mercury
17
Years of Service
User Offline
Joined: 25th Jan 2007
Location:
Posted: 15th Jun 2007 11:51
Are there any script, when you press Enter key then main script changes on entinity? and then again you press enter it changes back the script?
If there are any then can someone say url or something that?
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 15th Jun 2007 16:10 Edited at: 15th Jun 2007 16:27


Hope that works


All the free PCF Productions Stuff
Mercury
17
Years of Service
User Offline
Joined: 25th Jan 2007
Location:
Posted: 16th Jun 2007 00:16
Thankyou for that.
How i understand scancodekeypressed=28: means Enter key? Is that right?
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 16th Jun 2007 19:40
@pigs can fly,

Greetings. This code doesn't seem to work. I tried it briefly, yesterday on FPSC, and couldn't get an entity to respond.

I'm away from my computer for the day, but will take a more detailed look at it when I get the chance.

It's a great effort, though. .fpi code that calls other .fpi scripts may be the way to go, as far as getting specialized AI response during gameplay.

Thanks,

Seth Black

"...I'm sorry, could you repeat your question a little louder? I'm a trifle deaf in this ear."

- Willie Wonka
mister shakes
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Amishville
Posted: 16th Jun 2007 20:46
I briefly experimented with runfpi a little while ago, and I don't think its a working command. rundefaultfpi or whatever works. If the entity will never be destroyed you could put one script in Main and the other in End and use rundefaultfpi=(0=start,1=main,2=end)

Side note: for the enter key just use plrusingaction.
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 16th Jun 2007 22:05
Quote: "How i understand scancodekeypressed=28: means Enter key? Is that right?"


It should. But it seems that it doesn't work... or maybe the runfpi command

I don't know, I made this script in 5 minutes and didn't try if it works or not, so I'm wondering now...


All the free PCF Productions Stuff
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 17th Jun 2007 00:17
Quote: "It's a great effort, though. .fpi code that calls other .fpi scripts may be the way to go, as far as getting specialized AI response during gameplay."


That's how my Script pack works - which reminds me, I need to get more work done on my next one...if DarkAI doesn't come out first (in which case I'll make a ton of still complicated scripts to fill in all those slots if it is the same as described for X10 )


Vote today and play the games!
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 17th Jun 2007 01:43
Hey good idea, if you make a working scrip for keypress then you could make one for an inventory, like if you press a key that .fpi calls other .fpi to show you the inventory.

I will keep this thread close.

Login to post a reply

Server time is: 2024-11-23 17:39:21
Your offset time is: 2024-11-23 17:39:21