Light Surrounding Player in Dark Area?

I was wondering if there was a way to make the halo of light around a player, sort of similar to how Pokemon games do it.
upload_2019-9-14_22-24-53.png

Like this, except a softer glow, and just a dim background instead of a completely dark one.
Moved to: RGSS3 Script Requests
You could try Galv's Visibility Range script. Last time I looked he provided a demo complete with a graphic. If the graphic is too dark, you could always reduce the opacity a bit in an image program (e.g. GIMP or paint.NET if you don't have Photoshop).
it can easily be done without scripts if you accept some minor limits.

the trick is to create the darkness with a picture that covers the entire screen and is completely black, with only the center area being transparent - to whatever distance you want, and that includes partial darkness by changing the amount of transparent pixels between the black pixels.

the disadvantage here is that it requires the player to stay in the center of the window - he cannot be allowed to approach the borders of the map.
and that requires to make the maps at least 10 tiles larger in any direction, while blocking all places where the player might be able to get nearer than 9 tiles to the border.
If the graphic is too dark, you could always reduce the opacity a bit in an image program (e.g. GIMP or paint.NET if you don't have Photoshop).
No need, there is an opacity controller inside the script. And it's actually a good thing because you can make it gradually darker by modifying the variable.

Original thread: https://forums.rpgmakerweb.com/threads/light-surrounding-player-in-dark-area.113310/