Add text before EVERY text box in the game AND check face filename

So, as i'm in the middle of my game and i want to change message boxes all over it, i'm trying to make something more... "automatic" to help me.

I need help to do 2 things:
First, check the filename of the image used for the face in the message box. If it uses "main.png" or "main2.png", every message box will have "\autoevent[0]" before the text.

If it uses any other any other face, it writes "\autoevent[EventID]"(changing EventID by the real ID of the event)

If there's no face, it wont add anything to the text box.



Is it possible to do that? Would save at least half a hour of work
I think Yanflys extended message plugins can help with this. It has the option to check certain settings within the chat windows. If you havn't already, try giving them a look.
Use the Yanfly message core and the SRD Auto Name Box extension.

Original thread: https://forums.rpgmakerweb.com/threads/add-text-before-every-text-box-in-the-game-and-check-face-filename.88994/