Can I include an event name in a text message?

I know that the hero's names can be included in a text message with \n[1], \n[2], ect...

But is there a way to include the name of a specific event, like a door, a npc or a chest? I wasn't able to find anything online.
The best way I know how to do it is to set a variable to be equal to a string of text.
I'm not sure the context in which your using it, but if you go to Set Variables, then Script, then type: "Your Text Here"'

The variable will display your text. Just set it to whatever you like whenever you want! 🙂

Make sure to include the "".
@GoodSelf Give you the answer. In particular, for reaching your needs:

After you named the event in the editor, set a variable with a script value, this way:
Code:
$dataMap.events[this._eventId].name

Then you can use the escape code \v[id] in the Show Text for showing the stored value 😂
@Gamefall Team but this posted in vxa section lol

Anyway, a little snippet you need to put in your editor (to let you know the event name)
Code:
class Game_Event
  def name
    @event.name
  end
end

following the GoodSelf's solution, instead of putting text, now you can do this
VfVslpxHSU2seU1vKEkT_g.png


Basically, you write down this in control variable -> script
Code:
$game_map.events[event_id].name
Replace the event id with id of the event you wish to display its name
@TheoAllen Oh sorry, my fault 😢 just force of habit on using MV.
Ah, I see. Thanks! Now I can build my dialoge system.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-include-an-event-name-in-a-text-message.87361/