Custom Window Script

I thought this could be done with yanfly core message plug-in but I think I was mistaken so I'll move this to script request instead.

Here's more information,
index.php

What I'd like things to look like.

index.php

Just the book itself.

index.php

Just a single in itself. It's 211x14 pixels.

Note that the top part should be 15 pixels high instead of 14 pixels to replicate the top of a book page as opposed to a single line.

I'd like text to be displayed like so, with a padding of 5 pixels on both sides of the line:
index.php

The red mark is just to visualize the 5 pixels padding and it wouldn't appear in-game of course.

(I don't know if there would be a way for word wrapping to push any words to the next line if the word can't fit on the line).

If possible (though completely optional at this point), I'd like to have a flashing marker to indicate that more text is coming. I'd like that animation to be more than 4 frames long as designated by the default windows setting:
index.php


Let me know if you have any questions.
As I have moved your original thread, which has a number of replies in it, this is a duplicate.
Moderator note: I am, therefore, closing it.

Original thread: https://forums.rpgmakerweb.com/threads/custom-window-script.113966/