The bright area around the actor

How to make the map dark and only have a light area around the actor
The scenario is as follows: The actor goes into a very dark place, then the actor holds a torch and the light surrounds the actor.
usually this is done with an inverted picture - a picture that is mostly black but transparent around the center, placed so that that center is always around the actor party.

this will need a parallel process for updating the show picture as well as an extended map border to prevent the party from leaving center screen.
You could try Galv's Visibility Range
I like Andar's way better, so how to implement it in detail?
Basically you'll need a picture for full screensize as described (black with a transparent area where you want light)
then you make a common event parallel process that shows that picture on the screen continuously, with a wait(5) or so to keep lag low (needs experiments, both too high and too low numbers of waits will cause stuttering or lag, and the exact number is different from game to game because it depends on what else is going on). That common event should be triggered by a switch "light source" or so.

when entering a cave or so you trigger the switch ON, and when leaving you need to not only switch off but also erase picture once for the last displayed picture.

Because the engine has the player move off center on the map borders, your maps need to have a large "frame" area that the player can't enter to prevent this effect - half a screen size plus one tile in all directions should be enough.

Original thread: https://forums.rpgmakerweb.com/threads/the-bright-area-around-the-actor.140176/