The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Enchanted on December 03, 2007, 11:39:35 PM

Title: How do you make button press events?
Post by: Enchanted on December 03, 2007, 11:39:35 PM
My question is, how would one make an event call trigger when the player presses a key, say, "H"?

An example: Player press "H" to call an event, $scene = Scene_Open_Menu.new
Title: Re: How do you make button press events?
Post by: :) on December 04, 2007, 12:37:21 AM
isn't there an event option for button input?
Title: Re: How do you make button press events?
Post by: modern algebra on December 04, 2007, 02:06:00 AM
Conditional Branch: Button Pressed

Also, Button Input Processing: Conditional Branch: Variable


They can each be used for different situations. Regardless, you will probably want a parallel process common event to do it.
Title: Re: How do you make button press events?
Post by: shaz on December 04, 2007, 02:09:36 AM
that's only useful if you want to use the predefined buttons.  I have no idea if H is one.

There's a script somewhere around for button input.  Have a bit of a search in the scripts database - I'm almost certain I got it from here.