Adapt text window to line number

Hey guys, I hope you're having a blast with your current RPG projects.

I'm struggling with one thing. I would like to use a picture for my message window background. However, this picture should adapt i.e. become another picture if there are only 2 lines of text.

Is there any existing plugin you could think of which helps me do that? Done a lot of google-jitsu already but it was unfortunately ineffective.
Do you use default message system? If you do, I can try make a little plugin that allow you use images as want.
Do you use default message system? If you do, I can try make a little plugin that allow you use images as want.

Hi King Gerar, that would be great! Thank you so much!

I am using YEP Message Core, other than that I don't use any message systems.
Here. See if works as you desire. I used together with Yanfly's Message Core and worked fine.
By the way, I suggest you compress the used images, to reduct size them because, probably, they will be a bit heavy.
Thank you so much, but no, unfortunately it doesn't work...

At the moment, it simply always shows the picture with the amount of rows that are defined as default rows in YEP's Message Core.
So if that is set to 4, it will be always 4.

I wanted to have it adapt to how many rows each individual message has... Is there any way to do that?
Nevermind, I solved it! Thanks to your plugin I managed to understand the mechanics and now it works.
@King Gerar Thank you so much! 😀DDDDDDDD <3 Have a great day you wonderful person. <3

Original thread: https://forums.rpgmakerweb.com/threads/adapt-text-window-to-line-number.83223/