The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: syafiqpilot on April 27, 2010, 06:34:42 AM

Title: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 06:34:42 AM
Hey guys,i've been wondering how to make a menu appear when i press a key?.
I have this quest log script and i want it to appear whenever i press a key lets say i have to press Q and the quest log menu appear..I want this to happen whenever a player is doing a quest or after or whatever but the main thing is that how do i make the quest log appear when i press a key ? Please help me !

NOTE:You can reply here or via my email
Email:syafiq_adnan_islam@hotmail.com
Title: Re: How to make a menu appear when press a key?
Post by: Zylos on April 27, 2010, 07:04:07 AM
Well... as it so happens there's a simple command for the Q key. Just make a common event with a parallel process that's always on, and do a conditional branch for the "L button" (the L button is the Q key, while the R button is the W key). In that conditional branch, just use whatever the call script is to bring up the quest log menu.
Title: Re: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 07:29:02 AM
Quote from: Zylos on April 27, 2010, 07:04:07 AM
Well... as it so happens there's a simple command for the Q key. Just make a common event with a parallel process that's always on, and do a conditional branch for the "L button" (the L button is the Q key, while the R button is the W key). In that conditional branch, just use whatever the call script is to bring up the quest log menu.

Okay but where do i make the event at ? I want me so call the player to press Q to open the quest log
Title: Re: How to make a menu appear when press a key?
Post by: Zylos on April 27, 2010, 07:30:37 AM
Common event tab, in the database. You can't miss it.
Title: Re: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 07:38:55 AM
Quote from: Zylos on April 27, 2010, 07:30:37 AM
Common event tab, in the database. You can't miss it.
Okay i found it...You know whart ? IT WORKS !!! THNX FOR THE TIP !
Title: Re: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 07:40:53 AM
Quote from: syafiqpilot on April 27, 2010, 07:38:55 AM
Quote from: Zylos on April 27, 2010, 07:30:37 AM
Common event tab, in the database. You can't miss it.
Okay i found it...You know whart ? IT WORKS !!! THNX FOR THE TIP !
wait one more thing...how do i know which button stands for which key ?
If L is Q and all the buttons ? like c,d,x,z ?
Title: Re: How to make a menu appear when press a key?
Post by: Zylos on April 27, 2010, 07:59:58 AM
These are all the default settings.

Game Buttons     
A
B
C
X
Y
Z
L
R
Keyboard Keys
Z
X
C
A
S
D
Q
W
Title: Re: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 08:12:27 AM
Quote from: Zylos on April 27, 2010, 07:59:58 AM
These are all the default settings.

Game Buttons     
A
B
C
X
Y
Z
L
R
Keyboard Keys
Z
X
C
A
S
D
Q
W


Okay thnx..but can i change the button and key?
Title: Re: How to make a menu appear when press a key?
Post by: Solundor on April 27, 2010, 09:23:53 AM
you can change the keys from the game menu (F1)Not the editor but if you send your game to other people let them know what key it is by default
eg "To open the quest log press Q by default"
Title: Re: How to make a menu appear when press a key?
Post by: syafiqpilot on April 27, 2010, 11:36:30 AM
Quote from: Solundor on April 27, 2010, 09:23:53 AM
you can change the keys from the game menu (F1)Not the editor but if you send your game to other people let them know what key it is by default
eg "To open the quest log press Q by default"


Okay you know what now?
I got this problem...
i put the conditional branch:the L button is being press
@>""i put the questlog script here""
@>
:else
@>""here i put nothing""
: branch end
:>

I put the conditional branch thingi at Common events(F10)
Then the name is put as Queslog open and trigger as parallel
But the condition switch is none.Must i put sumthhing there?If yes then where should i put it?


Title: Re: How to make a menu appear when press a key?
Post by: Zylos on April 27, 2010, 04:54:52 PM
To work a parallel process common event in the database, you must turn a corresponding switch on. Just double click the condition switch and create a switch for it to use. This switch is now what turns your common event on and off. Then, inside the game itself (probably in something like your opening cutscene or map), create a different event on the map that turns that particular switch on.