Well, what I meant is that the raw data (data output that's saved when you use the Message event command to input text to be displayed) should be saved in a format that's simply like this:
- "this is the first line\nsecond line\nthis would be the third line, regardless if it's getting\ncut off because of the window size"
Expand to see the code.
In other words, you get a perfect string, ready to be split.
Let's say that string is saved in the variable @message_string (I never worked with the message system really, so I dunno how it actually is saved... but it should be easy to figure out), then just split it like so:
- @message_array = @message_string.split("\n")
Expand to see the code.
This will get you the following array to work with:
- p @message_string # => ["this is the first line", "second line", "this would be the third line, regardless if it's getting", "cut off because of the window size"]
Expand to see the code.
Now what you do to display them below each other is this:
- for i in 0...@message_array.size
- self.contents.draw_text(4, 32 * i, self.width-40, 32, @message_array[i], 1)
- end
Expand to see the code.
As this is script support, I let you figure out the meaning of all this yourself (ask if you need elaborations), however, I'm gonna tell you that the 1 at the very end is the align flag, which aligns your text left if you put 0 (or don't put anything), centers it if you put 1 or aligns it right if you put 2.
BY the way, all of this should go directly above the default draw_text methods, if I'm not mistaken...