I'm looking for a script that's able to read the inputted name atop an event, as in this part:

I want to be able to name an event something, and when a common event is called, it reads that name and performs a particular effect. Basically, it gives the event its own characteristic / type of object through the assigned name
I have attempted to make something work before reaching out for a request, but I'm unexperienced, so it simply kept giving me errors. I do know, however, that RPG::Event is where the names are stored, but I can't figure out how to pull the names from there
My only specifications is that the script call shouldn't require adding an ID to identify which event it is, as the script call will be put directly on the events themselves