Notice: fwrite(): Write of 467 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Requesting a Key Binding Script

The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Enchanted on December 04, 2007, 12:04:47 AM

Title: Requesting a Key Binding Script
Post by: Enchanted on December 04, 2007, 12:04:47 AM
I would like a script that will allow me to call events such as $scene = Scene_Menu2.new.

Or something as simple as a print("You pressed some key.") inside of a function, something that will detect what key is pressed so that I can bind menus to different keys.

Title: Re: Requesting a Key Binding Script
Post by: shaz on December 04, 2007, 02:21:35 AM
*sigh*

Posting the same request in 10 areas will not get you the answer any faster, but it WILL put a few noses out of joint.

On the second page of the Scripts forum, had you looked, you might have found a topic called Keyboard Script (allows you to use any key) (http://rmrk.net/index.php/topic,7674.0.html).

The comments in the script tell you how to use it, but I modified it and set up a call in Scene_Map (in the Update function - around where it checks for the F9 key to be pressed when debugging) to check for particular keys being pressed and call new functions.

This should get you somewhere.