This is a javascript plugin that will not do anything on it's own, but can be useful for other scripters. This script essentially implements an observer pattern into RPG Maker. Event systems help modularize your code by sending messages between pieces of code that do not directly know about each other. They allow things to respond to a change in a state without constantly monitoring it in an update loop. You can read more about it here: Observer pattern - Wikipedia
en.wikipedia.org
This script hasn't been fully optimized and I'm sure there are some things that may not be fully standardized with RPG Makers coding style. It was made in a couple of hours. On every triple a project I've worked on so far, each engine has had one of these, so I wanted to make my own for my internal project. Hopefully this comes in handy for you!
This was made with RPG Maker MV in mind. I have not tested this with RPG Maker MZ, but I don't see much of a reason why this wouldn't work with MZ as well.
I made a small project with a couple of use-case examples! Nothing mind-blowing, but hopefully will provide you with a few ideas to get some ideas across for how it can be used! You can find that project here.
Terms of Use: Free to use or modify for free or commercial projects. My only request is that you don't republish this (or your edits) and claim it as your own. If you want to give credit (not required), please give to Nathan Pringle and specify it was this script in particular.