Fixing lighting when the screen is tinted

Heya. I've run into a small problem recently, and I was wondering if anyone knew a possible fix to this.

For some parts of my game, I'm using the method of using an event graphic to create a lighting effect. However, there are some lights that I only want to turn on at night, but when the screen is tinted dark to make it appear night, the light graphics are also tinted darker, and it ruins the illusion of light. Is there any way to tint the screen and have specific event graphics be independent of the tint?
You'll most likely need a lighting script for that.

I've moved this thread to RGSS3 Script Requests. Thank you.

Or somehow change the viewport of the image? Like, make the Z higher than the tint?
Or somehow change the viewport of the image? Like, make the Z higher than the tint?

I think I know what you mean, but is that possible to do without a script? Or is it an event command I'm missing?
but is that possible to do without a script?
Impossible.

There will be one consequence though, mainly because of how the RGSS3 engine works. When you start excluding specific sprites so that it won't be tinted, it will be drawn above all tileset including star passable tiles. If you're okay with that, the script could be made.

I'm not saying I'd be the one who's going to make, just a possibility.
Impossible.

There will be one consequence though, mainly because of how the RGSS3 engine works. When you start excluding specific sprites so that it won't be tinted, it will be drawn above all tileset including star passable tiles. If you're okay with that, the script could be made.

I'm not saying I'd be the one who's going to make, just a possibility.

Ooh, I see. Thanks for letting me know that, I had no idea. And honestly, I'd be completely okay with that, and it thankfully wouldn't be a problem with the specific part of my game that I need the untinted sprites for.

I don't know how complicated of a script this would have to be, but I guess that's what I'm asking for now. If anyone could figure one out for me, I'd be really grateful, and I'd be sure to give credit and all.
This script by Estroile seems to work. Haven't tested but it's reported working.
This script by Estroile seems to work. Haven't tested but it's reported working.

IT WORKED!!! I don't know how I didn't find that sooner since I've been looking for a script exactly like that but it's perfect!! : D Oh my gosh thank you sooooo much! It's just what I needed. I really appreciate the help!!
IT WORKED!!! I don't know how I didn't find that sooner since I've been looking for a script exactly like that but it's perfect!! : D Oh my gosh thank you sooooo much! It's just what I needed. I really appreciate the help!!
Hi, I have the same problem too, but I don't know how to use this script, would you like to teach me how to use it?
@Hazelnutt , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/fixing-lighting-when-the-screen-is-tinted.123945/