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

View attachment 269355If you want the flashlight to work only when the player actually has the "Flashlight" item, it's even simpler than that! Make an item in the Database (mine is called Torch, since I'm Australian 😛). Set it up to be a key item, and add the note [flashlight].

What this does is place the "flashlight" light on the player if they have this item in their inventory, and removes the light if they lose the item. To setup the "flashlight" settings, check the -ShoraLighting- plugin settings again, and look for a setting called [Lights: Custom]. In that setting there should be a light called flashlight that you can adjust the settings for. If the list of custom lights is empty, you can double-click empty space to make a new one (you will need to call it flashlight), or copy the ones from the -ShoraLighting- example project.
Respectfully and professionally, I could kiss you on the mouth. You have solved all my problems.
View attachment 269355If you want the flashlight to work only when the player actually has the "Flashlight" item, it's even simpler than that! Make an item in the Database (mine is called Torch, since I'm Australian 😛). Set it up to be a key item, and add the note [flashlight].

What this does is place the "flashlight" light on the player if they have this item in their inventory, and removes the light if they lose the item. To setup the "flashlight" settings, check the -ShoraLighting- plugin settings again, and look for a setting called [Lights: Custom]. In that setting there should be a light called flashlight that you can adjust the settings for. If the list of custom lights is empty, you can double-click empty space to make a new one (you will need to call it flashlight), or copy the ones from the -ShoraLighting- example project.
Fun new problem (less of a problem and more of a challenge):
Screenshot 2023-07-13 at 10.36.13 PM.png
Do you know a work around/solution?
the light like that is an easy fix if you set the x,y offset correctly.
not sure if its in the parameter or by scriptcall, as I think you could
do it in he parameters.

y-24 or less should work, but play with the numbers 🙂
Is the problem that the flashlight isn't centred on the player? Try editing the "flashlight" custom light settings and playing with the section marked [Advanced: Offset].

If that fails, try making a copy of the image that the light uses (/img/lights/flashlight.png, from memory), and editing it so that the light is centred more how you'd like it.

Edit: ninja'd
I'm experiencing some issues with the plugin. Whenever an event/player with a light effect moves, the graphics become distorted, expanding into a large circle. Does anyone have insight into the possible cause of this problem? I'm at a loss here and would appreciate any help I could get 🙂
how do you add offset to the comment tags?
example I have a light called [light beamN] I want to move it 16 pixels to the left, but only for this particular event (I don't want to change the plugin setting for this custom light overall). is this possible? if so, what is the syntax required? thanks.
Hi, I found a conflict about the plugin with MV3D plugin. Is there any fix for this? If not, is there anyway to disable the plugin using notes, plugin command or script? Anyway, I think your plugin is amazing and thank you.
edit: Also, I found [lighting off] a way to disable the plug in on map notetag. But does it work also using event?
Just an FYI, OCRam's Lighting plugin uses MULTIPLY instead of ADD, not sure why, but the results look about the same for lighting overlap, so who knows, haha. 😉
Hey, maybe way old news but the light pngs (in img\lights folder) used for the plugin are all tinted, even the white looking ones are actually a little blue. This would effect the light colors. for total control of color they should be completely desaturated.
how do you add offset to the comment tags?
example I have a light called [light beamN] I want to move it 16 pixels to the left, but only for this particular event (I don't want to change the plugin setting for this custom light overall). is this possible? if so, what is the syntax required? thanks.
You can try [beamN -x -16]

Hi, I found a conflict about the plugin with MV3D plugin. Is there any fix for this? If not, is there anyway to disable the plugin using notes, plugin command or script? Anyway, I think your plugin is amazing and thank you.
edit: Also, I found [lighting off] a way to disable the plug in on map notetag. But does it work also using event?
Yes, you can use the Plugin Command for MZ, or use the script "$gameLighting.disable()". You can enable the plugin again in the same way. As for MV3D, this plugin is not intended to work with any plugin that change the way the game rendered (such as from 2D to 3D).
@Shora Thank you!
party member is a light source powered by oil once you run out of oil party member turns lights off.
is there a way for this system to only turn the light source on if said party member has a specific item in the inventory


Hello! After 40 maps I decided to add a lighting plugin and yours was the best received by my project! But unfortunately due to some incompatibility with some possible plugins that I use to do Parallax or any other that I haven't identified yet, when I activate the lighting plugin, the camera stops following the Character and becomes static.



So anyway congratulations and thank you very much!

Another thing, could you tell me where I can dynamically see the light effect, like in the gif you posted?


(sorry for my english via google translator)
Hello!! I tried to use custom lights with the fluorescent lighting from your example, but when I set it up, it didn't work despite putting it in custom lighting with [light fluorescent] as its name and fluorescent.png as the image and doing the comment change. Any advice?
party member is a light source powered by oil once you run out of oil party member turns lights off.
is there a way for this system to only turn the light source on if said party member has a specific item in the inventory
Since you can use plugin command/scripts to add/remove lighting for your player, you can achive what you want by simply integrate that with some other items controlling plugin that fire a scripts when a item is added/removed. I'm pretty sure there are plenty of these.



Hello! After 40 maps I decided to add a lighting plugin and yours was the best received by my project! But unfortunately due to some incompatibility with some possible plugins that I use to do Parallax or any other that I haven't identified yet, when I activate the lighting plugin, the camera stops following the Character and becomes static.



So anyway congratulations and thank you very much!

Another thing, could you tell me where I can dynamically see the light effect, like in the gif you posted?


(sorry for my english via google translator)

Thanks for you kind words! Can you tell me which plugin it is incompatible of? If it a general usage plugin like for parallax mapping, I will try to fix the incompatibility.
As for the GUI, I'm working on a better one right now for directly editing light into the map, so stay tuned! The one in the GIF is to only demonstrate which effect the light can have (and it is very old).

Hello!! I tried to use custom lights with the fluorescent lighting from your example, but when I set it up, it didn't work despite putting it in custom lighting with [light fluorescent] as its name and fluorescent.png as the image and doing the comment change. Any advice?
You need to register the lighting in the plugin command. The image is just a source material, you can use one image for many different lighting type, which could have different radius, rotation, or color/tint.
The link to the 'getting started' guide isn't working. Can anyone help me find it?
Sorry about the double post, but I decided to try and figure some stuff out while I'm still looking for the tutorial and... well that was a mistake. I've got no idea what I just broke.

IMG_2971.jpg


(phone pic because not even Gyazo wanted to touch this one)

Can anyone help me figure out what happened here? D: It happened when I hit 'new game' to try a test map.
Hey Shora! I keep loving this plugin and the work you are actively putting in to updating it.
I think I've found a small possible bug!

When using a transfer player command and transfer the player to the same map they are on, it doesn't show the lighting until the player takes a step.
I am experiencing the exact same issue. Is there any update on this?
Oh very grateful for the attention!

Well, I guess I'm the plugin freak! I must have more than 100 plugins in my project(!!!!)

The main ones that mess with Parallax are:

►Galv_LayerGraphics

However, I have numerous other plugins that somehow deal with pictures and the screen.

PS :. I currently use LightningCommunity, however it creates a dark layer that hides my pictures

Below is the complete list of them! (Sorry for the size)

Spoiler
Scratch both of my previous posts, I've done more investigating and I've figured out the problem, and it's more bizarre than I ever could've imagined. The plugin doesn't work if both Yanfly Party System + Yanfly Item Core are both active. When it's just one or the other, it works fine! But when it's both... my head hurts @-@

Here's a link to my help thread if anyone has any ideas as to what sort of digital spirit I could've possibly offended for my game to fall apart in such a weirdly specific and terrible way:
Scratch both of my previous posts, I've done more investigating and I've figured out the problem, and it's more bizarre than I ever could've imagined. The plugin doesn't work if both Yanfly Party System + Yanfly Item Core are both active. When it's just one or the other, it works fine! But when it's both... my head hurts @-@

Here's a link to my help thread if anyone has any ideas as to what sort of digital spirit I could've possibly offended for my game to fall apart in such a weirdly specific and terrible way:

It works for me even with those 2 YEP plugins activated in the same project.

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