MZ [MZ & MV v1.9.7] Shora Lighting & Shadow System

@Ninja777 for MV, it is this scriptcall:
$gameMap.requestRefresh();

for MZ, if might be refresh or a slightly differently as you are mostly "request"
it to refresh.

it might be the correct call for MZ you used, as it would be the same as transfer
and going back, if you need to compleetly exit the game and re-enter it, than
I dont know.
@Ninja777 for MV, it is this scriptcall:
$gameMap.requestRefresh();

for MZ, if might be refresh or a slightly differently as you are mostly "request"
it to refresh.

it might be the correct call for MZ you used, as it would be the same as transfer
and going back, if you need to compleetly exit the game and re-enter it, than
I dont know.
I tried your alternate version of the script call, but it didn't work either. The lighting script must be set to only evaluate on exiting and re entering a map. I have a rigged event call that transfers the player out and then back. This turns the screen black for a moment, but gets the script to refresh.

To answer your previous questions, I use this for changing the Region ID in MZ
I use that one for a different mechanic, but also tested with shora lightning
for testing purpose, and it works on my end, MZ works differently, so the
scriptcall I use for MV probably wont work in MZ, but should be equal around.

if you transfer to 1 map and back and works, I should go with that way,
it isn't a bad thing if it works by than.
Perhaps it's that you need to force the plugin to rebuild its shadow map based on the region IDs.
Looking at the plugin more carefully, that would not be simple. My best guess is that you'd want to modify GameLighting.prototype.add to keep a record of all the lights it adds, then you'd need a way to do a "refresh" of GameLighting that destroys all the lights and rebuilds them. The shadow appears to get built and baked into each light when the light is created, so yeah, changing the region IDs on the map at runtime isn't going to affect lights that have already been built.
@matthewwells
you can disable the light and enabling it which could work as well,
this is untested though, but worth a try?
Question, is there any built in way for me to have this plugin only affect lighting in certain maps? It's a nice plugin, but I'm looking for a way to have it only affect certain areas without it blacking out the rest of my game. An example would be map A uses the lighting, but map B wouldn't. Right now map B is completely dark unless I add lighting to it, which I don't want. I want it to appear as if I wasn't using the plugin at all on map B.
I know I had this problem initially, and I solved it. I think that the solution was to set "ambient" to "#ffffff" in the settings under "Map: Default." This essentially turns lighting off, since an pure-white ambient will cause lights not to render. I do now have to use common events to set the ambient light to whatever I want when transitioning maps. As I recall, I tried using map notes to set the ambient lighting and that didn't work. I created created common events called "set cave lighting", "set indoor lighting", "restore full lighting", etc.
@AllosaurusNE you can do so to turn off the plugin on those maps
and enable them on the maps you need it.

there is a scriptcall in the helpfile or in the OP post how to do that.
Hi how can we change light image to an event ? Like there's a laptop and I want the light blue by using a blue light image
@cl0ud you can use comments to give a lightsource name.

event page 1 [light torch]
event page 2 [light laptop]
event page 3 [light gaming]

each page can be a switch what it is on and it can change
the colors.

keep in mind that torch, laptop, gaming = custom light names which
you can set in the parameters if you use other colors (small, medium, big,
objects, flashlight colors) etc, you can set it up how you want it to and name
them correctly.

I would not name custom light directly unless you know what you do, but
you can make a list on how you want it so you can keep lights organized.
Hi again, the main character find a flashlight and at the end of an event there is light around him, how do I do that ? And when he is in a new map there is alway light
Hello @cl0ud! I had the same issue a few days ago and I solved it this way. Within an event, I just gave my character a torchlight, an item I created in the dedicated menu. To do this, create an item and add the name of the light in square brackets in the Note section . My question, however, is: how do I make the light turn on and off on command?
@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.

I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more.
@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.

I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more.
Well, I want to try the demo but Actors.json is correcpted so I can't open the project
I dont have that problem or encounter it.

if you get that error, check your browser setting, there is a topic how
to avoid that error though.
@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.

I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more.
Yeah, I've learned how to turn lights on and off, my question is, is there a way to let a player turn their own torchlight on and off on command? If so I cannot find it anywhere.
you can do so by using an item and an buttonCommonEvent plugin.
you can than toggle a switch ON/OFF for equiping and unequip the
torch that way as simpliest solution.

I dont know by plugin command or scriptcall, but should be possible
with $gamePlayer I believe.
Hello

So, first off. I did DL this for free (For Now). I am going to see if I can actually figure it out, if I can, I will pay for the commercial version. Now my big question because this part always messes with me.

Create a folder named lights in /img/, and puts your light images in here.

where do I get said images? This part always gets to me. Also, to be sure...this is made for MZ as well, correct?

Thank you
@Devian1 check the demo how its done.

in the demo is the lights, but those could be removed (as well in the parameters).
if you know how it works, you can do it safely and add your own lights (shape, colors)
etc.

and use custom names if you like or if you are a beginner/average in plugins,
use the images + settings from the demo first. and alter it later if needed.

Original thread: https://forums.rpgmakerweb.com/threads/mz-mv-v1-9-7-shora-lighting-shadow-system.131410/