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 / KeyCode List?

Author
Message
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 19:35
scancodekeypressed=X

Does anyone know what all of the numbers are for this command? Like a list somewhere? I know 33 is F but i don't get how the system works

Thanks!

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Aug 2011 19:40 Edited at: 8th Aug 2011 19:41
Quote: "scancodekeypressed=X

Does anyone know what all of the numbers are for this command? Like a list somewhere? I know 33 is F but i don't get how the system works"


I take it you did not read the manual, or more specifically, the Official Community Guide as many of us suggested to you.

It is on page 57 of that guide, very top. Nice picture layout of the keyboard with the numbers associated to the keys.


Twitter: @NFoxMedia
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 19:53 Edited at: 8th Aug 2011 19:56
I did have the time to read/look through all of it yet, but clearly i missed it last night.. My bad I will take a look right now..

EDIT - Also, does the mouse (left and right) count as keys? If so is there a number for them?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Aug 2011 19:55
No problem. The scancodes are all there for you. It is quite handy, and one of the most used pieces you need for scripting.


Twitter: @NFoxMedia
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 20:18 Edited at: 8th Aug 2011 20:38
Alright thanks!!

Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 8th Aug 2011 21:04
The mouse does not count for scancode..

Samotnijat vylk nasred gorata.
-3D,2D Artist,Animator,Web developer and Programmer.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Aug 2011 21:10 Edited at: 8th Aug 2011 21:17
mousestate=
1,2 corresponds to left and right mouse buttons used.
1,2 definitely work, I havent tried 3 yet but prolly does correspond to middle.

Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 22:06 Edited at: 8th Aug 2011 22:07
Do i need some special script to make it so when i look at an entity and click it makes the image appear? Or can i just set the mousestate=1 instead of scancodekeypressed=33?

Oh wait, won't that mean i can be looking anywhere and it will still work?

This is going to be fun, maybe i should just stick with the F key. I know wolf or somebody made an interactive game where the mouse can do stuff. I kind of want to do something like that, because my game is going to be like Amnesia... Anyways, let's not get off topic shall we? :p

EDIT - Thanks for commenting though rolfy, i didn't see those in the community guide so i figured i would ask

rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Aug 2011 22:33
Quote: "Oh wait, won't that mean i can be looking anywhere and it will still work? "

Not if you add this condition.
pickobject=1

Quote: "I know wolf or somebody made an interactive game where the mouse can do stuff. "

Thats it! I'm off to stomp around the hen house over at the Fox's place and I aint never coming round here again.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Aug 2011 22:37
Quote: "I know wolf or somebody made an interactive game where the mouse can do stuff."


Quote: "Thats it! I'm off to stomp around the hen house over at the Fox's place and I aint never coming round here again."


LOL... makes you wonder sometimes...

You and Mrs Rolfy are welcome here anytime. Mrs Fox just did up some fresh baked goodies.


Twitter: @NFoxMedia
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 22:42
Im confused? What did i do?

Quote: "pickobject=1"


Thanks rolfy, i remember seeing that somewhere but i couldn't remember where..

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 8th Aug 2011 23:21 Edited at: 8th Aug 2011 23:23
Quote: "Thanks rolfy, i remember seeing that somewhere but i couldn't remember where.."


LOL! You do know that rolfy made that. It is located here:

http://forum.thegamecreators.com/?m=forum_view&t=181485&b=21

and

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


Cheers.

God help me, Please.
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 8th Aug 2011 23:48
I KNEW IT! I apologize rolfy, i didn't remember.. I was thinking wolf at the time because i think i was commenting about him somewhere else and so i put that down..

Thanks for the links though 2Beastmode4u!

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th Aug 2011 22:46
I think Exu Corporations needs a pair of fuzzy pink slippers.

Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 9th Aug 2011 22:54
You know, i would actually love a pair xplosys! XD

Login to post a reply

Server time is: 2024-11-24 06:54:59
Your offset time is: 2024-11-24 06:54:59