MV Script call to force a message through Yanfly's Message Core?

Hey everyone, I'm having a tough time figuring this one out; even after debugging and digging into the console, I'm hoping someone can follow the stack a bit better than I can. I'm using Yanfly's Message Core for RMMV, and I have a common event where I'm using a JS switch case in order to not have literally hundreds of conditional branches.

However, I cannot get the message box to parse the \n in order to display the name box.

$gameMessage.add("textytext") is the usual way I've found to add text, however, this script call does not appear to get parsed through Yanfly's Message Core. I've been able to figure out how to force an empty message box to appear with a name box, but I can't figure out for the life of me how to get a name box with the message inside of it from a script call. Normally I'd just use the show message event command, but I need to use a JS switch case for this one implementation.

Am I missing something obvious?

Link to the script: http://www.yanfly.moe/wiki/Message_Core_(YEP)
Use \\ for a backslash in JavaScript, e.g.
JavaScript:
$gameMessage.add("\\n[1] is hungry.");
This is because JavaScript uses \ for escape notation.

If you want to store a text code in a game variable (Control Variables > Script) then use \x1b instead:
You just need to use \x1b instead of \\, since the default code pre-converts all backslashes to the \x1b escape character. E.g. Control Variables > Script:
Code:
"Hi! \x1b.How's things?"
Use \\ for a backslash in JavaScript, e.g.
JavaScript:
$gameMessage.add("\\n[1] is hungry.");
This is because JavaScript uses \ for escape notation.

If you want to store a text code in a game variable (Control Variables > Script) then use \x1b instead:


Those dang backslashes, thanks a ton! Fixed and working.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-force-a-message-through-yanflys-message-core.138172/