Light Spell

I wanted to make a light spell in my game, something that can brighten up dark areas, you know? But I can't think of a way to do it so that it works the way that I want. It'd be easy if you could tint the screen according to variables, but I don't see a way to do that. I just want it to tint the screen brighter, last for a set amount of time, and then fade the tint back to whatever it was originally set at for that area. Does anyone have any ideas of a way to do this? Any plugins that might help with this?
how do you create darkness?

there are two different ways to handle this, depending on you creating darkness by tint or by black opacy overlay.

if you're working with tint, then you could do this with two common events:
one called by the skill that adds the light tint and controls a switch for the second common event.
the second common event on parallel waiting for timeout and then changing tint back and disabling itself

if you need more help you need to show us how you create your darkness (event page screenshot)
best way if you want to use tint, use 1 variable as a timer, and a switch
when cast.

if switch x = ON
variable x = 500 (500 frames)
tint screen
else
tint screen (black)
end

than a parallel with switch X ON
variable x -=1
if variable x <= 0
variable x = 0
tint screen (to black)
switch x = OFF
end

those can be both in common event if you use it everywhere or only
in the dark caves to check those.

there might be other ways as well, depending what fits best.
best way if you want to use tint, use 1 variable as a timer, and a switch
when cast.

if switch x = ON
variable x = 500 (500 frames)
tint screen
else
tint screen (black)
end

than a parallel with switch X ON
variable x -=1
if variable x <= 0
variable x = 0
tint screen (to black)
switch x = OFF
end

those can be both in common event if you use it everywhere or only
in the dark caves to check those.

there might be other ways as well, depending what fits best.
Uh...I feel like such an idiot. I swear I'm not this much of a noob at eventing. This doesn't even fully encompass what I want to do but it's given me enough to go on that I can figure out the rest. Thanks for your help.

Original thread: https://forums.rpgmakerweb.com/threads/light-spell.141213/