Yes, the script definitely belongs under Materials. I just tried the script out in a blank project and it worked fine, so I think the problem might be something on your end. Do you have DEFAULT_WORDWRAP set to "true"? Or do you have the message tag "\ww" placed in whatever message box your testing?
Ah, that makes sense since the script judges different "words" by the spaces between them, so jibberish wouldn't have worked very well if there's no spaces. 🤣
I'm glad you got it figured out, though! As for resizing the actual message box, you'll have to do that in the script editor, as well as rearrange and/or resize all the other windows, too, or else the description window will overlap them. Actually, I think you said earlier that you wanted it to scroll?
...Honestly, I think you should put up a script request for something like this.
Many custom scripts may use Modules as a form of defining what "settings" of the script the user can change, which the rest of the script (classes) can refer to and apply.
module Settings #Script users can change these to suit their needs setting_1 = 5 setting_2 = 10end#DO NOT EDIT PAST THIS POINTclass Game_Battler def thing value = damage value += Settings::setting_1 value *= Settings::setting_2 endendWell something like that. The modules provided by the main engine are made and used completely differently however. But my example is what most custom scripts look like. (that use modules)