Yanfly Message Box takes up a line

I got the message box and put in the code in the message box for giving characters names. I put in the code with the name and the rest of the text after it and its offset. like the first line goes then stops.

I put the code up top with three other lines. The code works great. its just fitting the text in the full box. like instead of having it indented or the top line of the four not being taken up.

is there a way to have the code with the name but have four full lines for text? I know the code goes in the message box but then it's offset, if you put in text next to the code, or the whole top line has to be empty.

It's not the code that's not working. it's just fitting text into the box while the code is there.
It shouldn't be offsetting anything. Are you only looking at the text with the preview button or are you looking in game? Some code like
\pn[1], \pf[1] or \n<\n[1]> won't show up correctly in the preview window.
It shouldn't be offsetting anything. Are you only looking at the text with the preview button or are you looking in game? Some code like
\pn[1], \pf[1] or \n<\n[1]> won't show up correctly in the preview window.

I'm looking at it in the game itself. I put in the code for the name and then the text next to it, but the text is moved over. Like the first line has the right text, but it ends and there's empty space. The code works but the rest of the text is offset depending on where it is compared to the code for the name.

If the text is put next to the code it's like

Name Box
123456
1234567890
1234567890
1234567890

if its just the top line it's like

Name Box

1234567890
1234567890
1234567890


if i put the code on the first line and nothing else, the first line is empty.
Hmm, it doesn't do that to me. I assume you're putting in name window code so \n<\n[1]> or \n<Name> Could it be a word wrap thing? Did you maybe press enter after the code? For me I don't use the word wrap but I could see it causing that issue.
Hmm, it doesn't do that to me. I assume you're putting in name window code so \n<\n[1]> or \n<Name> Could it be a word wrap thing? Did you maybe press enter after the code? For me I don't use the word wrap but I could see it causing that issue.


In the message box i have \n<Name> and then text right after that. When I press enter after the code the whole top line is empty. If i put the text right next to the code like "\n<Name> testing testing 123" then the actual text will stop before going to the next line.
That does sound like a word wrap issue. Maybe try turning word wrap off in the plugin parameters and see if it fixes it. You should be able to put the text right up to the code to so \n<Name>Then text.
That does sound like a word wrap issue. Maybe try turning word wrap off in the plugin parameters and see if it fixes it. You should be able to put the text right up to the code to so \n<Name>Then text.

Word wrap was off. I turned it and it works up top, but now on the last line it's indented ><

idk what's going on 🙁 When word wrap was False it was messed up. I turned word wrap on, set it to True, and the top three lines work but the fourth line is indented.

Name Box
1234567890
1234567890
1234567890
12345

It's better than

12345

and the rest fitting correctly.


Actually I think I got it! I Have word wrap on True. I put the the name code on top, with word wrap set to true. There are three lines for text but that's okay.

I have the code on the first line and the text on the other three lines. the other three lines fit correctly.
This doesn't happen to me either. Can you show us a screenshot of your eventing and the in-game result?
Another thing, are you using any other plug-ins that might be effecting the message system?
This doesn't happen to me either. Can you show us a screenshot of your eventing and the in-game result?
Another thing, are you using any other plug-ins that might be effecting the message system?

I think I got it working. I have Word Wrap set to True and I put the code for the name on the first line in the message box. Then the rest of the text on the other three lines. They're all lined up, none of them are indented and offset. That leaves only three lines but that's okay.
That will work but you should have all 4 lines default, ie. not adding or removing lines in the parameters. Susan is right, if you post some pics we should be able to get you your 4th line if you still want.
Heres the code for the name box

https://ibb.co/je8TNQ


Heres the text in the game:

https://ibb.co/dSxSGk

Those words that are together there aren't up against each other like that in the code.
There's no need to place a space after "\n<Michael>".
I think you're using Wordwrap right now. Since your text is more than what the window could fit, the rest spilled over to the next window.
Please disable Wordwrap and show us what your in-game message looks like.
There's no need to place a space after "\n<Michael>".
I think you're using Wordwrap right now. Since your text is more than what the window could fit, the rest spilled over to the next window.
Please disable Wordwrap and show us what your in-game message looks like.

I had Word Wrap disabled before and it was still messed up. Like Word Wrap was False, and even with there being no space it was still messed up.

I turned off word wrap and got rid of that extra space and it's like

Name box
123456
1234567890
1234567890
1234567890
I can understand if you prefer to use Wordwrap after all that mess. Anyway, you can still remove the space after the <Michael>.
Okay, with Wordwrap on, you have the use <br> when you want to form new lines. You'll also have to edit your messages to ensure they'll all fit the message window.
In your screenshot, the reason why the last part of your last line disappears is because it doesn't fit into the message window.
There's no need to place a space after "\n<Michael>".
I think you're using Wordwrap right now. Since your text is more than what the window could fit, the rest spilled over to the next window.
Please disable Wordwrap and show us what your in-game message looks like.

Oh, it's supposed to end on "just". I was doing the Song that Never Ends from Lamb Chops sings it all. I'm 30 yo, but I remember that from when I was a kid.

With word wrap off and the extra space not there after the code, the indentation is still messed up.

All four lines are there but theres a bunch of empty space after the first line.
Since Yanfly's Message script works for us without the problem you're having, there's either a setting that was changed on your side, or you're using some other plug-in that might have caused this weird glitch. By the way, are your core scripts and the Yanfly's plug-ins updated to the latest version? If you haven't already done so, I suggest updating the core scripts with Yanfly's version as it provides the desktop performance of version 1.4 (which was better than the default 1.5).

On topic, if this glitch is happening for you and Wordwrap helps, I'm just pointing out that there's no problem with the how it works. The last line entered in your "Show Text" command wasn't cut off for no reason; it was cut off because there wasn't anymore space in the current message window. (since this was an issue you mentioned after you enabled Wordwrap) 😉
Sorry about this. I did try it with both Wordwrap on and wordwrap off. I have the quest log plugin? that might be it, I'll try.

It's not the quest plugin. i tried it with wordwrap on and off and its still not working.
No apologies needed. We're all here to help. 🙂
If you want to try to troubleshoot it yourself, try to create a new project and add a newly downloaded version of Yanfly's Message plug-ins. Create the same event in this new project and playtest it to see if it works as intended.
Then add the other plug-ins you're using and enable them one by one until you run into the bug. If it doesn't happen after you've enabled them all, it could be a setting that was changed in Yanfly's Message plug-in.
In the plugin settings, is Word Wrap Space option true?
In the plugin settings, is Word Wrap Space option true?

I got rid of the plugin and added it in again, and it's still indented when I put the text in right after the code for the name box.

I got rid of the other plugins and its still indented. Like with the Name box code and right after is the text. I think because the name code is taking up part of the message box. I did an install without extra plugins. Basically it's the Name box code and right after it is rest of the text.

I tried both Word Wrap true and false. Like when I first used the Plugin it wasn't working.

Where is the text supposed to go next to the name box code? Right after adding the plugin I put in text next to the name box code. Like right after adding the Plugin i have the code and right next to it is the actual text.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-message-box-takes-up-a-line.83232/