Lighting affecting a popup message script

I have an issue with the popup message script I found.
Im using Khas awesome light effects and the messages are affected by the effects as if they were treated as an element of the map and not the ui.
How can I modify the script to change the "layer" it's on? Or maybe there is some other solution to this?


A picture of what it looks like:

image-6.png

I also attached the txt file of the popup script
I’ve moved this thread to RGSSx Script Support.
if Khas's plugin tints the whole screen, I doubt changing the viewport for the messages would do anything.
does it tint the message window as well?
if Khas's plugin tints the whole screen, I doubt changing the viewport for the messages would do anything.
does it tint the message window as well?
You mean the vanilla message windows that rpg maker uses? It doesn't, the messages and other windows such as the menu aren't affected by the tint.
In the script on line a new viewport but it's on the Scene Map.
You can try raising the z value by adding a line and increasing the current z value.
line 161 add after that $oblo.z = 1000
then three lines down change the z value there to 1000.
That might work, if not then the viewport needs to be a higher number. (Viewport2)
Viewport 1 is the map and characters, viewport 2 is the weather effects.
In the script on line a new viewport but it's on the Scene Map.
You can try raising the z value by adding a line and increasing the current z value.
line 161 add after that $oblo.z = 1000
then three lines down change the z value there to 1000.
That might work, if not then the viewport needs to be a higher number. (Viewport2)
Viewport 1 is the map and characters, viewport 2 is the weather effects.
Thanks for the answer.
How do I change the viewport exactly?
Thanks for the answer.
How do I change the viewport exactly?
nvm, I got it now. Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/lighting-affecting-a-popup-message-script.158912/