How to create a text box programmatically?

I'm trying to write a script that will create a text box and display some text every time a certain event is added, but after digging around the code I wasn't able to figure out how to go about doing that. I think it's from the Window_Message class, but I haven't been able to figure out how to get that to work. Can anyone help me out? I'm using Yanfly's Quest Journal plugin and am trying to show a message every time a quest is added, which as far as I can tell can only be done writing a script for it.
Got it sorted. Turns out I was vastly overcomplicating it and it was as simple as $gameMessage.add("Text");

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-text-box-programmatically.130604/