Common Event Buttons

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

commonEventButtons1

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.

Download

Plugin: download here (right-click, save-as)

Suggested plugins to use the entire keyboard

Installation

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.

Usage

To assign a common event to a button, create a comment somewhere in the
common event and then write

  <trigger button: BUTTON_NAME />

commonEventButtons2

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.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

7 Responses

  1. Mark says:

    Can you activate an object that has a common event, and with the same key disable it again?

  2. blue says:

    How to make the common event only work on the map (out of combat)

  3. Kerykeion says:

    Hey Hime,

    I’m trying to use this to create a hotkey to abort a battle. I have no issues doing so in a randomly occurring battle from walking on the map, or testing from database. When trying to do the same in an evented battle, it no longer works. Please help!

  4. Paragorn says:

    Hello. My Name is Paragorn i’am german. So i download you awsom Plugin and it work. But.i cant activate a Common Event with any button :% Can you please help me? A Demo Game was realy helpfull.

  5. Eon.K says:

    This is amazing but I need to mention that it says “Downlaod” since it will bug me if I dont say anything!

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax