Khas Awesome Light Effects

AMAZING!  Thanks.

Joe
Is there any way to make the event start all darkish? it keeps fading to dark when I enter the map.
try using parallel process event to run the dark surface... it seems to work fine for me
hmmm, I need a better tutorial lol...scripts can be a challenge for me.
hmmm, I need a better tutorial lol...scripts can be a challenge for me.
Just remove the wait time. Without a wait time the screen wont take time to fade to black.
meta, if you have an event handy...do you think you could screen shot it so i can see what i am doing wrong? 
I have wait time as 1, so its fast, but you can still see the change, I want map to be black when it loads.
It's how the script works. You'll just have to deal.

Best way I've found is to cut to a black screen (blank map with nothing on it), fade-out-transition to the map you want, and then start the script process before the fade-in. 

Also, please don't double-post if you can help it. There's an edit button for a reason  😉

EDIT: Also-also, this script is easy, comparatively (I've run into a few that are just obtuse to use - generally just try to find something that works the same way if I do). Just follow the instructions in his script's comments and you should be good to go.
@Stridah - use parallel process for the event that makes it dark, then if it still fades over a little time frame after that, try adding a fade out on the previous map before transition, make the transition not do any fade, then fade in after you set the tint
I have an issue. I copied the script and pictures and everything correctly, yet when I go to create the effects, they don't show up. Even using the exact same event as the demo.

How can I fix this?

Edit: No, actually it's only the flashlight that doesn't work. It doesn't show up.
Can you post some screens? Of both the issue and your edits to the base script (can just copy-paste that into a Code box as well)

My guess is either A] you didn't move something across from the demo, despite thinking you did, or B] you may be using the wrong IDs for the flashlight. Did you follow the instructions in the script's comments? They're actually well-written and fairly easy to follow.

EDIT: stupid emotes ~.~
Okay, so I imported the script and then I changed 'Surface UE = false' so that tint screens would work. Then I copied the flashlight event from the demo and pasted it in the map, deleting the 'change character sprite' part in the event. I changed the switch to one that I'm using for it. There's the picture of the event: screnne.JPG

Here's a screenshot of the gameplay. The flashlight doesn't show up:Screenie.JPG

I then tried adding an event from the demo and changed it so that looks like this: scnrene.JPG It makes the screen slightly darker, which I don't want, and the flashlight is also very dim, too dim for my liking: scr3ene.JPG

But then if I put the original event: SSSS.JPG, the screen goes so dark that I can't see anything but the flashlight: SSSSSSSSSS.JPG
Why are you using Temporary Event Removal?
As soon as the game processes that line, it removes everything you just did. That's why you aren't seeing anything. Use Erase Event instead.

EDIT 2.0: Erase Event will only erase the event that just ran, instead of removing the event entirely the results as well. It's a bit funky, I know - believe me, it takes some getting used to. I don't think some things translated very well from Japanese into English XD

As well...

-- Self-switch, self-switch, self-switch! You need some way to stop those programs from repeating (especially them pesky Parallel Processes) - self-switches do that easy-peasy! Just drop a self-switch at the bottom and leave a blank page with a self-switch trigger [[ likely because it's Japanese, and they read right-to-left, RPG Maker also reads its pages right-to-left; with the self-switch on, when the process goes to repeat, it sees just a blank page and stops the Event right there ]]

-- Switch from Autorun to Parallel Processes. P.p. tends to work better for background events and animations than Autorun, which is better for starting one-time-run events that need to begin at a specific trigger point instead.
 

-- You're missing some code to give the player the flashlight ("Set Move Route: Player (Wait) $>Graphic: 'char_lantern', 0"). You only changed the ownership; you didn't overlay the flashlight onto the screen, thus it will not show up. That needs to happen to get any effect to show. If you read the instructions in the script's comments, you would know that already.
 

-- Leave 'Surface UE =' as 'true'; it generally works just fine. Only switch it to 'false' if you're having issues or glitches.
 

-- Finally, consider making the lantern a Common Event. Personal preference, but then you can just call it up and shut it off whenever you want, instead of having to copy/paste every time you want to use the lantern/flashlight/etc. You can also shut it off when you get "indoors" or at certain times (great for horror games where you want your light to fail!!).

Here's some working examples (from my game, which is currently on indefinite hold 🙁 ):
My initialize event: Dwm 2014-04-30 21-17-51-43.png
Separate surface effect tinting: Dwm 2014-04-30 21-42-53-02.png
The event itself (as a Common Event): Dwm 2014-04-30 21-18-03-72.png
My script edits: Dwm 2014-04-30 21-18-18-66.png

Please note that you don't have to do it exactly like this; the Common Event is really because I find it easier to manage that way, rather than copy-pasting the same event in again if I need it later on ^^; Also, I made the surface tinting separate because then it will show up immediately on the screen; erasing that event then ensures that it doesn't repeat ad infinitum.
 
I'd highly suggest poking at the tutorials on this site (and practicing them too! XD) before going any further. I'm not demeaning your talents, but they will make your life a lot easier in the long-run.

Trust me, everyone starts out the same way. ^^
Oh! Thank you! The flashlight is working, but it's a bit too dark, how can I lower the opacity? Meh.JPG

And also, there's a glow where the flashlight events are in effect. How can I get rid of that? Mehhh.JPG

And when I turn 'Surface UE = true' the tint screen stops working, and when I turn it to false, it works,  but then another, different tint screen stops working. If I want to tint the screen darker during a cutscene when the screen fades out and then in after a while, how would I do that? The tint screen during that space doesn't work. I want it to be like the pictures above, but I want the first scene before the fade out to be lighter: Meeh.JPG
EDIT: I should note that I haven't used this in some time, so if I'm a bit conflicting or confused, I apologize.

To be honest, I've already given you as much as you should need. The only other thing I can add is that you should prolly clear the screen between maps.

Other than that...

Are your processes the same on both screens?

Are you building the events the same way?

It probably sounds like I'm being a lazy jerk - maybe I am, I dunno - but you're likely to get further quicker by playing around with the processes and reading/doing tutorials instead of us having to walk through each step one at a time XD

And even then you'll have to fiddle with it anyway, because that's how things are. It's the nature of the program. And half the "fun" *shrugs*
Sorry if I sound like an idiot, but is there a way to stop the lighting from effecting the choices and also this hp HUD script? I have the opacity set to 255, and message boxes seem unaffected, yet choices and the HUD are. So if you could help me out, that'd be great.  🙂
Hi,

is it in any way possible to change the range of the light? So perhaps that i can light a room with a bit fewer events?

I struggled myself trough the script but i wasn't really successful. Can anyone help?

Zazu
When I add this into my game, it will not allow my character to move at all. He is stuck in starting pose
Hi,

is it in any way possible to change the range of the light? So perhaps that i can light a room with a bit fewer events?

I struggled myself trough the script but i wasn't really successful. Can anyone help?

Zazu
Since this script uses images for the lights, you'll have to make your own "light". It's not terribly difficult, but just remember to save the image as the OPPOSITE (or 'negative') color that you want.

When I add this into my game, it will not allow my character to move at all. He is stuck in starting pose
Did you import only the script, or every resource in the ZIP? Also, you'll need to make your own lamp character if they're supposed to carry a light source - just have to do some image editing that's simple enough to figure out :3
Since this script uses images for the lights, you'll have to make your own "light". It's not terribly difficult, but just remember to save the image as the OPPOSITE (or 'negative') color that you want.
 Okay, thanks. c:

Original thread: https://forums.rpgmakerweb.com/threads/khas-awesome-light-effects.4917/