HINTS

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

HINTS

Post by metal_head »

In the beginning of my game I want to make messages,telling you for example:
"To open the door press the "E" button" OK,but that will work only if the key for oppening a door is "E" and by default in my game it us "E",but if the player changes this button to...for example "F" and goes to the door,the message will appear telling him to press "E" not "F".
So my question is,how to make a message display the button used for something even if the button is being changed by the player?

I know that there's a command for showing the player's name,but for buttons...I have no idea.
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: HINTS

Post by Danimita92 »

What about doing what many commercial games do?
Use the ACTION key (default E) to open doors and...
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: HINTS

Post by Juutis »

Yeah, I think Danimita's idea would be the best solution. Scripts can't see what key is assigned to which action. Yet.

RF 0.80 features:
Configurable key descriptions in the options menu
Script variables to get keys as configured in the options menu
:wink:
Pain is only psychological.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: HINTS

Post by metal_head »

hmmm,yeah I haven't though about that,thanks guys I'll do it thaat way...I guess another stupid question from me... :D
Post Reply