[CGMZ] Button Events (Patreon)
Downloads
Content
Run an event when the player presses a button. Used to help make custom game mechanics that rely on pressing gamepad or keyboard buttons, as you can easily event whatever mechanic you need through the common event that runs.
! SEE BOTTOM OF POST FOR UPDATES !
Hi all, introducing [CGMZ] Button Events!
Bind Buttons to Common Events
This plugin allows you to bind a common event to a keyboard key or gamepad button (or both), allowing you to create just about any custom mechanic within your event creation skills.
This plugin supports a cooldown in frames, so you do not need to worry about your player being able to spam your common event mechanics.
Some uses for this would be to event mechanics that occur on the map, such as swinging a pickaxe to break rocks blocking the way. See below gif for an example of how it can be used (gif uses [CGMZ] Dungeon Tools for the tool behavior):
Keyboard & Gamepad Support
This plugin supports both keyboard and gamepad, and you can bind keys and gamepad buttons separately or together. If bound together (same plugin command), they will share a cooldown so your player cannot get around the cooldown by using both a keyboard and gamepad input.
Clear Binds As Needed
When you do not want the player to have access to the custom mechanic you have evented, you can unbind the key or gamepad button so it no longer runs the associated common event.
For example, if you have a dungeon mechanic that you do not want the player to be able to use in town maps, you can bind the common event when they enter a dungeon and clear the bind when they leave.
Quick Facts
✅ RPG Maker MZ✅ No obfuscation✅ No AI used at any point in the creation of this plugin
Support
Casper Gaming provides quick support to any user who needs it. You can leave a comment below with your question or issue, I try to check my Patreon at least once a day. For even quicker support, you can come into the Casper Gaming Discord and ask for help in the #support channel.
Roadmap
This plugin can already cover a lot of mechanics since the only limit is your eventing skills, however I do plan to add some more control over binds as well as anything else that is requested.
User Requests
Option to automatically bind keys on certain maps
Switches to turn on/off binds
Casper Gaming plugins are made better through community suggestions. I am always happy to hear any features you'd like to see added that I may not have thought of already. Please leave any suggestions you have in the comments below, or in the #suggestions channel of the Casper Gaming Discord. I add all suggestions to my to-do list.
Happy RPG Making!
This version adds a disable switch, which you can use to temporarily disable all of your button events from working. While disabled, the button cooldowns will also be frozen.
I also added a simple plugin command to clear all keyboard and gamepad button events, in case you just want a quick way to remove them all.