MV Community Lighting on Key Items

Hi everyone! I'm making a horror game where it'll be dark in most maps. Right now I'm using community lighting plugin, which works fine for light events that stay on the map. However, I wanted to make a key item (a candle) that player can pick up and light the way. The light would slowly go out, to which the player must use matches to light the candle again.

I tried using TerraxLighting for the candle with timer, but I got very confused and changed to community lighting since it appears to be simpler? I assume I could make similar evens using Community Lighting, please correct me if I'm wrong.

For reference, I followed this tutorial for the switches. He used showPicture command, but I wanted to make use of the community lighting instead if possible. Essentially, what I'm trying to do is instead of using ShowPicture, I want to use Community Lighting's plugin command/comment that would make the light follow the player.

I apologize for my English, I'm willing to elaborate if it's confusing. I'm also very new to rmmv, so I would appreciate any help!


[ISPOILER]
1.png
[/ISPOILER]
[ISPOILER]
2.png
[/ISPOILER]
[ISPOILER]
3.png
[/ISPOILER]
[ISPOILER]
4.png
[/ISPOILER]
Your events are not made correctly. You might want to back up and read the instructions, do some tutorials on the event types.

Parallel events run continuously while their conditions are met. This means a few things.

1 - It's pointless to put a Conditional Branch inside one that asks "Is this switch on?" The parallel event can never run if that's not already true (you do this in both your CandleSwitch and CandleController events).

2 - You should not be using parallel events when you want just one thing to happen. You should use a common event with Trigger: None, and attach that common event directly to the item you're using.

In fact, the CandleSwitch attached to the item explicitly can't work that way - you can never call a parallel event, you can only activate it via its switch.

As a general rule, if you're doing something in a different way, it doesn't make much sense to try to do it the same way as something completely different. The Community Lighting plugin is not the same as Show Picture, so it doesn't work to try to use that tutorial.

There's no reason for you to be using a parallel event at all, or to be getting the player's coordinates, or any of that. Right in the instructions for the plugin is a plugin command to give the player a light radius:
1713989111265.png


So all your candle needs to do is call a common event (Trigger: None) that has that one plugin command in it.

Then you can experiment with the Light radiusgrow command to try to make it gradually die out.
Your events are not made correctly. You might want to back up and read the instructions, do some tutorials on the event types.

Parallel events run continuously while their conditions are met. This means a few things.

1 - It's pointless to put a Conditional Branch inside one that asks "Is this switch on?" The parallel event can never run if that's not already true (you do this in both your CandleSwitch and CandleController events).

2 - You should not be using parallel events when you want just one thing to happen. You should use a common event with Trigger: None, and attach that common event directly to the item you're using.

In fact, the CandleSwitch attached to the item explicitly can't work that way - you can never call a parallel event, you can only activate it via its switch.

As a general rule, if you're doing something in a different way, it doesn't make much sense to try to do it the same way as something completely different. The Community Lighting plugin is not the same as Show Picture, so it doesn't work to try to use that tutorial.

There's no reason for you to be using a parallel event at all, or to be getting the player's coordinates, or any of that. Right in the instructions for the plugin is a plugin command to give the player a light radius:
View attachment 302977

So all your candle needs to do is call a common event (Trigger: None) that has that one plugin command in it.

Then you can experiment with the Light radiusgrow command to try to make it gradually die out.
oh wow, I can't believe I missed that and went with all the extra steps. Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/community-lighting-on-key-items.168050/