how to make an object which will not be affected by tint screen

Originally, I want to make a magic circle that glows in the dark (tint screen) like the picture shown below:
from this
1687605835310.png

-> to this
1687605881452.png


I used the script from this link ->

However, after using it, I found that the character is below the circle
1687606094196.png


Is there any solution to fix this problem?😔
You have encountered the problem that is specifically stated in the script.
the event priority is below characters. z-mod will make it above the player.
I can only think about making the player be above as well (on zmod layer)
But then any events that are above player without zmod would be below the player.
and I don't know how that will affect the map tiles.

Some testing needs to be done to find how low of a number can you make the zmod and have it still above the darkness.
What is making your darkness? I forget your other threads.
You have encountered the problem that is specifically stated in the script.
the event priority is below characters. z-mod will make it above the player.
I can only think about making the player be above as well (on zmod layer)
But then any events that are above player without zmod would be below the player.
and I don't know how that will affect the map tiles.

Some testing needs to be done to find how low of a number can you make the zmod and have it still above the darkness.
What is making your darkness? I forget your other threads.
I use screen tint to create a dark environment. For the z mod, the lowest value which still lets the object above the darkness is 0. The creator of this script initially wanted to fix this problem, but later he thought it was not necessary to do that. Moreover, this script was posted about 10 years ago, so it is quite hard to find this creator and seek for help. 😩
This problem is complicated. I tried the same idea exactly a decade ago and stuck with the same problem.

To explain why this happens, it has to do with the RGSS3 limitation. So let me explain the situation as simple as possible:
- A code that handles tileset could not apply tint screen.
- In order to apply the tint effect, the game applies the effect on the viewport level (i.e., the entire screen).
- How the script/mod works are basically excluding the character from the viewport.
- However, doing so means the character will be drawn above anything else. Including top-level tiles that are marked as stars. This is similar to how the UI works (they are drawn in different viewport and unaffected by tint)

My attempt exactly this day 10 years ago (thanks Facebook memories) discovered this issue.
1687628385004.png


In that day, I thought it would be impossible to fix the issue. However, after years of learning RGSS3, while there is a possibility to fix the issue, it is complicated and might ruin some compatibility with other map related scripts. Because it might require some refactor.

The explanation below are for scripters

- My idea would be adding two viewports. One for the characters (that won't be affected with tint screen), one another is for the top level tiles (that is affected by tint) and possibly the character as well.
- You need to create a new tilemap object responsible to render the top tiles (the star one)
- You need to figure out which map data that contains a star tile, then assign it to the second tilemap. which I already forgot almost everything about map data structures

TLDR:
Unfortunately, it is complicated matter.
This problem is complicated. I tried the same idea exactly a decade ago and stuck with the same problem.

To explain why this happens, it has to do with the RGSS3 limitation. So let me explain the situation as simple as possible:
- A code that handles tileset could not apply tint screen.
- In order to apply the tint effect, the game applies the effect on the viewport level (i.e., the entire screen).
- How the script/mod works are basically excluding the character from the viewport.
- However, doing so means the character will be drawn above anything else. Including top-level tiles that are marked as stars. This is similar to how the UI works (they are drawn in different viewport and unaffected by tint)

My attempt exactly this day 10 years ago (thanks Facebook memories) discovered this issue.
View attachment 266720

In that day, I thought it would be impossible to fix the issue. However, after years of learning RGSS3, while there is a possibility to fix the issue, it is complicated and might ruin some compatibility with other map related scripts. Because it might require some refactor.

The explanation below are for scripters

- My idea would be adding two viewports. One for the characters (that won't be affected with tint screen), one another is for the top level tiles (that is affected by tint) and possibly the character as well.
- You need to create a new tilemap object responsible to render the top tiles (the star one)
- You need to figure out which map data that contains a star tile, then assign it to the second tilemap. which I already forgot almost everything about map data structures

TLDR:
Unfortunately, it is complicated matter.
Thank you for your reply. Actually, I'm a newbie to rpg maker, so I don't know how to write a script. 😐 Anyways, I will try to find another way to make the effect.
try to find another way to make the effect.
This may be off base of me since I don't own or use VX Ace, so the scripts and capabilities I am not familiar with.
That said, if there is a script for something like parallax mapping, you could just get a large single colored image (the size of your map), use something like "multiply" and "opacity" level to create a tint, and then place this image below the event. Down side is that all events will likely be "lit up" the same way this magical circle is.
So, alternatively, make the magical circle a picture, using the same parallax script, have the image of the magic circle added to the map.
This may be off base of me since I don't own or use VX Ace, so the scripts and capabilities I am not familiar with.
That said, if there is a script for something like parallax mapping, you could just get a large single colored image (the size of your map), use something like "multiply" and "opacity" level to create a tint, and then place this image below the event. Down side is that all events will likely be "lit up" the same way this magical circle is.
So, alternatively, make the magical circle a picture, using the same parallax script, have the image of the magic circle added to the map.
Thanks for your reply 😍 Currently, I am finding a parallax script for it (Actually I have seen this script in this forum before, but I didn't notice that I needed it a few days later.😢)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-object-which-will-not-be-affected-by-tint-screen.158639/