Zeus Lights & Shadows

I'll do an update later and add an option for that.

Or you can show what this bug look like, maybe I can fix it.
Oh I'm sure your script is fine. I have over 56 scripts running in my project. 🙂 Im sure it's compatibility. I cant get reflections to work either. LOL
UPDATE : http://pastebin.com/raw.php?i=VpHHBuaW

Log Change : 1.3 : - new option to disable lights at the beginning of the script - new option to disable shadows at the beginning of the script - new option in events to prevent them from being darkened - new option in shadows to setup if they should darken characters or not - new option that allow to create lights/shadows without naming them they will be named automatically with the id of their event - fixed display bug related to scripts that change the game size during game on map even if it's a nonsense - fixed display bug related to shake screenA few details about the new features.
- new option in events to prevent them from being darkened
Before we had no choice all characters were darkened (when in a shadow), now you can change it by using the set_shadowable function in a script.
- set_shadowable(value, chara_id) Defines if a character can be darkened or not. value = true or false Default value is true. chara_id = id of the character on which change this option. If we put nothing it means "this event", which runs the script, as @event_id. Example : set_shadowable(false, -1) # prevent the player from being darkened set_shadowable(false) # prevent "this event" from being darkened
- new option in shadows to setup if they should darken characters or not
Before it was handled automatically, characters were darkened when below shadows associated with the map but not when below those associated with characters, now it's up to us to choose.
- shadow(key).shadowable = true or false Defines whether a shadow should darken characters or not. For shadows linked with characters it's important to make them not darken, otherwise the linked character will be darkened all the time. Default value is true. Example : shadow("shadow 1").shadowable = false
- new option that allow to create lights/shadows without naming them, they will be named automatically with the id of their event
Before we were obliged to name differently each of our lights/shadows, now we can give no name and the script will automatically generate one using the id of the event that created it.That way we can create an unnamed light for example, and make multiple copy/paste without having to change the name each time.

Code:
            light("light 1").setup("torch.png") # new light            light.setup("torch.png") # new light without name
Hi, I am trying to set up a common event where if the player is blinded, then the screen is tinted black as long as they are blind.  I don't knowif this is the way the effects work here or I am missing something but I have two questions.

So, I got the tint part to work but...

1.  I can see other lights, like if I use your demo torch and flashlight.

2.  I want the screen to return to the previous tint once the blind condition is removed instead of it remaining black until I move to an event where the light changes.
I solved my own problem.  Yay for me!!
Hey I am playing around with your lighting effect and am curious if it can work for a project. I am wanting to have the mouse be the light source for the player. I am unsure how I would make this effect happen. I have stared a thread experementing with it to see if I could chance upon it. I am terrible at scripting.

 http://forums.rpgmakerweb.com/index.php?/topic/17364-i-would-like-my-cursor-to-produce-light/?p=168246
How about commercial use?
Hmm this looks good for a dark forest level I am working on. I'll give it a try. 🙂
This script is amazing. I changed over as soon as I got done with the demo for Map Effects. Very nice, thanks for the work and the detailed user guide. I'm a bit of a slow learner so I appreciate that. Also, (terribly sorry for my lack of knowledge here) I'm really starting to like the game using a slightly darker hue to it. It just makes everything nicer, for a lake of a better term. Besides carefully placing tint commands, is there a way in the scripts to make this change permanent? The answer to this is probably a no-brainer and I'm just missing it, but either way, thank you!
I'm not sure to understand, when you change the screen tone it actually is permanent, no?
I'm terribly sorry, the fault was on my end. The issue is I would put the tint command in one room, go to another in game, save and reload and the tint wouldn't be there anymore. But that was just me being silly. My question had been if I could change the color someway that didn't require the tint command. Instead, I wanted to use scripts (particularly your user-friendly script) to make the default color for the project the (-30,-30,-30, 0) I was using and change that lighter when need be. But the tint command would probably be the best way to do that, wouldn't it? No need to make it any more complicated. Sorry to confuse you!
You can if you use Basic Game Time + Night/Day v1.6.2 and call all the tints for every time of day (-30,-30,-30, 0). But then in eventing if you ever need a tint for effect you have to use a script call to suspend game time tints to do you event tint and then return it back to (-30,-30,-30, 0) yourself...  🤘  
That's an option I haven't considered. I haven't touched any day/night scripts yet. Thanks for the suggestion 🙂 I'll try it out.
Awesome script, it's a must have and more powerful than Khas' light effects. However if you can make it more simplistic similar to Khas light effects will be perfect. For example, in Khas' script it only needs to put one line of script to have light on.

The flash light in Khas' also is more realistic, he sets flash light position on the right instead of middle, it makes the character look like holding the flash light.
I'm trying to make the screen darken when the character enters a map and i just cant figure it out. Like I'm trying to set up a dungeon where the player needs to use a torch cause its total darkness. Also would it be possible to set some sort of time limit on the torch? To where it runs out after a while of having it equipped.
To make the screen all black simply use the tint (event command page 2 : visual effects) with RGB to -255.

The script can't handle time limit, but you can do it by programming with events variables, common events, parallel process...

xinchao : sorry for the late reply, the script haven't a single on/off script command because it haven't a single light effect, there is a lot of options and we have to set them up according to what we want.

About the position of the flashlight it's just an image, so if you want it to appear with an offset depending of the direction you just have to edit the image.
To make the screen all black simply use the tint (event command page 2 : visual effects) with RGB to -255.

The script can't handle time limit, but you can do it by programming with events variables, common events, parallel process...
I got that far, but I have no clue how to make this take effect right when the player enters the map. I tried setting the trigger to auto run but then the Player cant move. I'm fairly new at this, sorry...
You can do it with a parallel process :

@> Tint Screen (-255, -255, -255, 0)

@> Erase Event
This is probably the best lighting script I've seen for torches with image overlays and such. One issue I'm running into however, if the player has a torch on and say, turns towards a ceiling tile, the torch will still display over the black border. It doesn't look great and I can't figure out how to fix it - I wonder if there's an option to kill the torch light on a certain terrain tag, perhaps? Here's a screenie of what I mean. I'm using parallaxes as maps so that may be an issue.

SFzeh0L.png
Not sure about how to do this, maybe I'll try something for the next update but it won't be as khas script.

Until then maybe you can use a picture that fit the black space, as pictures are above the map it will hide the light.

Original thread: https://forums.rpgmakerweb.com/threads/zeus-lights-shadows.16040/