[RPGMMV] Breaking a line with DreamX's ChoiceHelp Plugin

Hello everyone,

I found this plugin on the old forum which lets you show a help window when you select different choices. I’ve been using the ChoiceMessage command because I want the text to appear below the choices, but I can’t figure out how to break the line. Putting multiple comments doesn’t work, rewriting the command doesn’t work and simply breaking the line manually doesn’t work. Is it even possible to do it?

Disclaimer: I am NOT using Yanfly’s Message Core or other messages plugins

The plugin pulls the message from a single comment line, and a multi line comment only gets its first line picked up. A second ChoiceMessage comment overwrites the first one, so neither of those gets you a second line.

Its terms allow modifying it, so what I’d probably do is open DreamX_ChoiceHelp.js and find this line inside updateHelp:

messageWindow._textState.text = messageWindow.convertEscapeCharacters(message);

and change it to:

messageWindow._textState.text = messageWindow.convertEscapeCharacters(message).replace(/<br>/gi, "\n");

Then the comment can be ChoiceMessage Here's some gold<br>to forget I stole the cookie! and the tag turns into an actual line break.

If you’d rather not touch the file, I think a Control Variables → Script set to "line one\nline two" and then ChoiceMessage \V[1] would get you there too, since variable values get swapped into the text before it’s drawn.