By default, common events can only be executed when you have an event call a common event, or if a common event runs automatically when a condition is met.
With this plugin, you can assign common events to certain buttons on the keyboard. When that button is pressed, the common event will be executed as long as you are on the map and common events can be executed!
This allows you to create your own special logic when certain keys are pressed, without having to find or write a plugin for it.
So for example, if you wanted to press a button to switch the order of your party members while on the map, you can create a common event and then put together the event logic. Finally, you can assign this common event to one of your game buttons! No scripting required.
Plugin: download here (right-click, save-as)
Suggested plugins to use the entire keyboard
Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_CommonEventButtons plugin.
Once it is in your list of plugins, turn the plugin on.
To assign a common event to a button, create a comment somewhere in the
common event and then write
<trigger button: BUTTON_NAME />
RPG Maker offers a very limited set of buttons to work with by default. They
are as follows:
ok - Z key, or Enter key escape - X key, or Esc key shift - left or right shift control - left or right ctrl/alt pageup - Q key, or page up key pagedown - W key, or page down key up - up arrow, or numpad 8 down - down arrow, or numpad 2 left - left arrow, or numpad 4 right - right arrow, or numpad 6 debug - F9
So for example, if you wanted a common event to run whenever you press one
of the escape buttons, you would write
<trigger button: escape />
And, if successful, the common event you assigned to it will run when you
press the button on the map.
I would recommend one of the full keyboard plugins available in the download section if your game requires a lot of keyboard functionality.