Adding a new line / line break \n, \\n in the description box? (SOLVED)

Hello!

I am trying to add a new line to the skill description box, but I can't seem to get it to work...
I am using the below function to do it. row[] is an array holding the different rows of the description.
Code:
skillDescription = "";
for ( r = 0; r <= row.length+1; r++) {
    skillDescription += row[r] + "\\n" ;
}

This generates the desired string with the \n visible. But it doesn't work, and I then realized, and remembered that the description boxes are dumb and don't get their own simple logic. So is there any workaround for this?

I use WAY_TextEval as well, so I tried the following:
JavaScript:
string ="Line 1 \nLine 2";
$dataSkills[1106].description = "${string}";

Doesn't work either...

Best regards,
Bishiba
Are you using a message plugin? Which one?
Are you using a message plugin? Which one?
Sorry for late reply, been busy 🙂

I am using the below message mods:
1625596003259.png

1625597267806.png


Hoping I can solve it, otherwise I need to figure out how to make a new window to replace the default description screen :/

Best,
Are you using a message plugin? Which one?
Yeah, I manage to solve it the second I posted... So I have now changed the YepMessageCore setting for default description wrapping to on.
So now it works! This is how to add more lines to the description box. And another important thing is that you are not supposed to use "\\n" in the text string, this is because then the "\n" will appear in the text and it does not read that in the game the way it does in other text boxes. So just write "\n" in the script and it works.

1625597513798.png

1625597669858.png


Now to fix the "undefined" and what not! 😀
1625597637213.png


Best regards,

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-new-line-line-break-n-n-in-the-description-box-solved.138114/