Event names

How do you get the name of an event from javascript? The best I can gather is Game_Event inherits from Game_CharacterBase, which has a _characterName property, but that doesn't seem to be it. I'm sure I'm missing something somewhere...
$data map. events [x].name
_characterName is the name of the sprite.


Game_Event.prototype.event gives you the event you see in the editor.  You could use $dataMap.events[id].name or if you have the event object ($gameMap.event(id) or however you are accessing the event itself), use evtobj.event().name
evtobj.event().name

Ahh, that was the trick!

Original thread: https://forums.rpgmakerweb.com/threads/event-names.59622/