How to setup a switch to light whole map

Hey
Im trying to make a game where players have to find a item on the map ie "crystal" the map is dark apart from the little light given to them my a tourch once they fine the "crystal" the whole map is given light again
can anyone help me set this up if this is possiable

kind regards
Hey bud!

So, one easy solution I can immediately think of is this:
-Set an event for the "crystal" to where, when the crystal is found, a switch is turned. When this switch is turned on, you can make it to where the switch triggers one of the following through a parallax event:

a) Tint Map to brighten the screen
b) Show an image that brightens the screen. (Like, an image you make in some art/photoshop software that's like a bright glow)
c) Make a map that's an exact clone of your current map, and set that cloned map to ("transfer") the player to this new map with the light.

Many different solutions here!
I've made this torchlight effect before. I used an art program, show picture that uses a variable to follow the player. Then I guess you would remove picture to make it all bright again.

I'll try to find a tutorial in a moment

Edit1: Found this




It is for VX Ace but the event should work in MV
thank you for your replays ill look into both ways, im still learning mv so all helps. what im trying to do is make a game where player has to actived a crystal on each map to bring the world back into light so each map would start off black
there are many ways to get what you want done, but it all depends on how you "darken" the map first. Because by default the maps are fully visible.

If you use a black/transparent picture to limit visibility (show picture on top of the player), then you only need to disable that picture.
if you use tint screen to darken the screen, you'll have to apply the counter-tint

and so on, although those two are the most commonly used methods.
Thank you all for your support iv gone with TerraxLighting plugin this works the way I wanted the look to be how ever i have no idea how to reset they plugin when player moves to a new map.
my code for the crystal is:

plugin command: Light deactivate

on the next map I placed a autorun event with

plugin command: Light activate

but this did not reset the light to dark, any ideas on how i can get this to work

kind regards

Original thread: https://forums.rpgmakerweb.com/threads/how-to-setup-a-switch-to-light-whole-map.129943/