How to call Event name in dialogue box

Hello.
So I have like 10 events with the same common event's, but half the code is in event itself, becouse I couldnt find how to add in dialogue box an event name.

I need somehow to call Event name automatically if common event runs in specific event. For example I have 3 events (jack, lok, gogo) with same common event, but if that common event runs in "jack", next time dialogue box pops up ir says like

Jack
Hello, this is my dialogue.


so i need something like

Script.call event name? //some command or something to call here event's name itself automatically
Hello, this is my dialogue.


Is it possible?
I could be mistaken because I'm not looking at the code right now, but I believe that the Event name doesn't get included into the Event object when the map creates it. I kind of remember looking for it at one point and realized that it wasn't available. I could be wrong, though.

But I think that you may be over complicating this a bit. Why not just set a variable before calling the common event? Use that variable's value to determine where you came from.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-call-event-name-in-dialogue-box.92363/