Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
every light can be event, and appear when the player is within range.
Now, to see only 'the area immediately around the main character', do this:
first, you'll need a picture of 640x480 with black bg, and white/transperant circle in center.
(if you're experienced in RMXP, just look at the screenshot below)
1. create the image mentioned above.
2.import to rmxp, and name it something like 'Darkness'.
3.make a new switch called 'dark screen'.
4. make a new common event. set it to parallel, then choose the switch 'dark screen' .
5.in the common event,
A. use 2 new variables: player x, and player y. add a 'control variables' command, and set them to player's x & y.
B. add a 'show picture' command, and choose the picture 'darkness'- in 'center', with variables player x, player y. and zoom 200% for x and y. now, just turn the switch ON, and you're done.
I made two demos for how to make the dark around the player, but I'm not sure for making it around events. There's two versions I've made, one allows you to see more if you have a lantern item (or whatever item you want), the other allows you to see the same amount you could with a lantern without a lantern.