[CGMZ] Common Events Everywhere (Patreon)
Downloads
Content
Sometimes you may want to run a common event in a menu scene, during battle, or at some other time. By default, common events are only fully supported in the map. This plugin makes common events work in scenes besides the map scene.
! SEE BOTTOM OF POST FOR UPDATES !
Hi all, introducing [CGMZ] Common Events Everywhere!
This plugin does what the name suggests, allowing you to run your common events in every scene. This includes parallel process common events continuing to run in the menu scenes or in battle, as well as calling one off common events in the menu (such as by using an item) without needing to exit the menu for it to run.
See below gif for an example of using an item that calls a common event to give the player 500 gold and shows a toast window (plugin command) in the item menu:
Simple Setup
This plugin is quite simple to use, you only need to add a Comment event command to your common events you want to run outside of the map scene that says "CGMZ RUN EVERYWHERE" and then that common event will be able to run in any scene.
Common Events without this comment will continue to function as before.
Limitations
Of course, not every event command can be used everywhere. For example, the message window that the Show Text event command uses is not created in the menu scenes, so it would not work in a common event that runs in the menu. If your common event is only intended for the map scene due to using event / plugin commands that only work on the map, you would not add the comment and then it would function as normal.
Autorun common events will also function as normal, this plugin only affects called common events and parallel process common events.
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 is already quite versatile, however I do have some planned additions for future updates including in no particular order:
Allow user to select scenes each common event can run in
Customize required comment
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 way to prevent common events from running in certain scenes. If you want them to be able to run in battle but not the menu, this would allow you to do that.
A debug option to log the scene names to console was also added. This should make it easier to figure out which scene name to type to prevent your common events from running in specific scenes.
This update fixes a bug that would cause saved games that were saved prior to adding this plugin to not run common events everywhere in a few cases. A bug was also fixed and parallel common events marked as run everywhere should now work in battle test mode.