ID:2389177
 
(See the best response by Nadrew.)
I want to display the text the player types on a book (which has various pages), but I don't know how to detect the parts of the text that'd fill a space completely to split them correctly. I would like to know if there's a way to do this (I could set a limit on the maptext's length, but this would be far worse and would force me to make it so that the field is half empty).

Thanks in advance!
Best response
There's no easy way to detect how much space text is taking up in maptext, so you'd probably be better off finding a good hard length to go on, you may end up with a little bit of blank space at the bottom of some pages, but that's not a totally bad thing (even actual books do this but they have actual sizes of the text to math it on).

Then you'd just leverage maptext_width and maptext_height to put the split text into nice book-sized boxes and go from there.